Sanka 0 Odesláno: 26. Říjen, 2012 Share Odesláno: 26. Říjen, 2012 Zdravím, chci napawnit autoškolu, ale hází mi to 4 chyby v jednom řádku a já nevím, jak je mám vyřešit a nemohu na ně přijít... Ty chyby jsou : (459) : error 029: invalid expression, assumed zero (459) : warning 215: expression has no effect (459) : error 001: expected token: ";", but found ")" (459) : error 029: invalid expression, assumed zero Předem díky za pomoc.. Link to comment Share on other sites More sharing options...
kell94_cz 7 Odesláno: 26. Říjen, 2012 Share Odesláno: 26. Říjen, 2012 Nejspíš ti tam chybí ; ale do kódu ti nikdo nevidí když nedáš řadek s chybou. Link to comment Share on other sites More sharing options...
Sanka 0 Odesláno: 26. Říjen, 2012 Author Share Odesláno: 26. Říjen, 2012 Řádek je to tento: if (Current == tvemenu ) { Link to comment Share on other sites More sharing options...
kell94_cz 7 Odesláno: 26. Říjen, 2012 Share Odesláno: 26. Říjen, 2012 Dej sem tak 4 řadky nad tím co máš a 4 pod tím. Link to comment Share on other sites More sharing options...
Sanka 0 Odesláno: 26. Říjen, 2012 Author Share Odesláno: 26. Říjen, 2012 public OnVehicleRespray(playerid, vehicleid, color1, color2) { return 1; } public OnPlayerSelectedMenuRow(playerid, row) { if (Current == tvemenu ) { switch(row) { case 0:{ if(GetPlayerMoney(playerid) < 1999) {// nemá peníze SendClientMessage(playerid, COLOR_RED, "[ ! ] Nemáš peníze [ 2000,- ].");//posle zprávu že nemá prachy } Link to comment Share on other sites More sharing options...
kell94_cz 7 Odesláno: 26. Říjen, 2012 Share Odesláno: 26. Říjen, 2012 Pokud nemáš nahoře tak mezi newy: new Menu:tvemenu; Do OnPlayerSelectedMenuRow: new Menu:Current = GetPlayerMenu(playerid); if(Current == tvemenu) { switch(row) { case 0: { if(GetPlayerMoney(playerid) < 1999) { SendClientMessage(playerid,COLOR_RED,"[!] Nemáš peníze [2000,-]."); } Link to comment Share on other sites More sharing options...
Sanka 0 Odesláno: 26. Říjen, 2012 Author Share Odesláno: 26. Říjen, 2012 Nahoře new Menu:tvemenu; mam... Mam i tak tam dát new Menu:Current = GetPlayerMenu(playerid); ??? Link to comment Share on other sites More sharing options...
kell94_cz 7 Odesláno: 26. Říjen, 2012 Share Odesláno: 26. Říjen, 2012 To tam dej. Link to comment Share on other sites More sharing options...
Sanka 0 Odesláno: 26. Říjen, 2012 Author Share Odesláno: 26. Říjen, 2012 Mám tam ty samé chyby a k tomu mi ještě přibyla chyba error 001: expected token: "-identifier-", but found "=" v řádku new Menu:Current = GetPlayerMenu(playerid); Link to comment Share on other sites More sharing options...
kell94_cz 7 Odesláno: 26. Říjen, 2012 Share Odesláno: 26. Říjen, 2012 Skus tam dat: new Menu:CurrentMenu = GetPlayerMenu(playerid); Link to comment Share on other sites More sharing options...
Sanka 0 Odesláno: 26. Říjen, 2012 Author Share Odesláno: 26. Říjen, 2012 Pořád stejný... Link to comment Share on other sites More sharing options...
kell94_cz 7 Odesláno: 26. Říjen, 2012 Share Odesláno: 26. Říjen, 2012 Nahoru mezi newy: new Menu:tvemenu; Do OnGameModeInit: tvemenu = CreateMenu("Autoskola", 1, 50.0, 180.0, 200.0, 200.0); AddMenuItem(tvemenu, 0, "polozka 1"); return true; } Do OnPlayerSelectedMenuRow: new Menu:CurrentMenu = GetPlayerMenu(playerid); if(CurrentMenu == tvemenu) { switch(row) { case 0: { if(GetPlayerMoney(playerid) < 1999) { SendClientMessage(playerid,COLOR_RED,""[!] Nemáš peníze [2000,-]."); } } } } return true; } Link to comment Share on other sites More sharing options...
Sanka 0 Odesláno: 26. Říjen, 2012 Author Share Odesláno: 26. Říjen, 2012 furt nic a už mě to štve.. to by chtělo aby se našel někdo, kdo by mi to udělal a pak by mi to jenom poslal... protože já už na to nemam nervy... tuhle autoskolu dělam 3 dny... hele můžeš to zkontrolovat tady?? Jestli neni tady nějaká chyba?? http://gtasampforum.forumczech.com/t34-tut-ridicak-s-checkpointy dělal jsem to podle toho... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now