vopojtepek 0 Odesláno: 27. Květen, 2014 Share Odesláno: 27. Květen, 2014 Ahojte, pomohol by mi niekto ako opravím tieto chyby ?? (Mohol by aj vysvetliť) ... C:\Users\Filip\Desktop\SAMP Server\Prácièky\Módy\NONAME.pwn(22) : warning 215: expression has no effect C:\Users\Filip\Desktop\SAMP Server\Prácièky\Módy\NONAME.pwn(274) : error 010: invalid function or declaration C:\Users\Filip\Desktop\SAMP Server\Prácièky\Módy\NONAME.pwn(276) : error 010: invalid function or declaration C:\Users\Filip\Desktop\SAMP Server\Prácièky\Módy\NONAME.pwn(278) : error 010: invalid function or declaration C:\Users\Filip\Desktop\SAMP Server\Prácièky\Módy\NONAME.pwn(284) : error 010: invalid function or declaration C:\Users\Filip\Desktop\SAMP Server\Prácièky\Módy\NONAME.pwn(286) : error 010: invalid function or declaration Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 5 Errors. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == 1) { if(response == 1) { if(listitem == 0) { ShowPlayerDialog(playerid,2,DIALOG_STYLE_LIST,"Nastavenie -> Farba Nicku","{FF0000}Èervená\n{33FF00}Zelená\n{0088FF}Modrá","Nastavi","Zavriet"); } } } if(response == 1) { if(listitem == 0) { SetPlayerColor(playerid, 0xFF0000FF); } else if(listitem == 1) { SetPlayerColor(playerid, 0x33FF00FF); } else if(listitem == 2) { SetPlayerColor(playerid, 0x0088FFFF); } } } if(dialogid == 574) { if(response == 1) { if(listitem == 0) { SetPlayerCheckpoint(playerid, 2158.4861, 2083.4512, 10.8203, 3.0); } } } return 1; } return 0; } Link to comment Share on other sites More sharing options...
0 JIDAVID 6 Odesláno: 27. Květen, 2014 Share Odesláno: 27. Květen, 2014 U toho nastavování barev ti chybí zjištění dialogu s ID 2: if(dialogid == 2) { Smaž return 0; } , ten je tam zbytečně. Nemáš tu řádek 22, na kterém je taky chyba. Link to comment Share on other sites More sharing options...
0 Uživatel 0 Odesláno: 27. Květen, 2014 Share Odesláno: 27. Květen, 2014 (Mohol by aj vysvetliť) ... Jasně, není problém: public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == 1) //Pokud má hráč otevřený dialog id 1: { if(response == 1) //Pokud kliknul na tlačítko "Dále" (aj.) { if(listitem == 0) //Pokud kliknul na první položku { ShowPlayerDialog(playerid,2,DIALOG_STYLE_LIST,"Nastavenie -> Farba Nicku","{FF0000}E`ervená\n{33FF00}Zelená\n{0088FF}Modrá","Nastavi","Zavriet"); //Otevře se dialog } } } if(response == 1) //Pokud kliknul na tlačítko neznámého dialogu (žádný se neotevřel) { if(listitem == 0) //Pokud kliknul na 1. item, ale opět v neznámém dialogu (žádný se neotevřel) { SetPlayerColor(playerid, 0xFF0000FF); } else if(listitem == 1) { SetPlayerColor(playerid, 0x33FF00FF); } else if(listitem == 2) { SetPlayerColor(playerid, 0x0088FFFF); } } } if(dialogid == 574) //Pokud má hráč otevřený dialog id 1: { if(response == 1) //Pokud kliknul na tlačítko "Dále" (aj.) { if(listitem == 0) //Pokud kliknul na první položku { SetPlayerCheckpoint(playerid, 2158.4861, 2083.4512, 10.8203, 3.0); //Nastaví se Checkpoint } } } return 1; } return 0; } Takhle by to mělo býti(třeba): public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == 1) { if(!response) return 1; if(listitem == 0) ShowPlayerDialog(playerid,2,DIALOG_STYLE_LIST,"Nastavenie -> Farba Nicku","{FF0000}E`ervená\n{33FF00}Zelená\n{0088FF}Modrá","Nastavi","Zavriet"); return 1; } if(dialogid == 2) { if(!response) return 1; if(listitem == 0) { SetPlayerColor(playerid, 0xFF0000FF); } if(listitem == 1) { SetPlayerColor(playerid, 0x33FF00FF); } if(listitem == 2) { SetPlayerColor(playerid, 0x0088FFFF); } return 1; } if(dialogid == 574) { if(!response) return 1; if(listitem == 0) SetPlayerCheckpoint(playerid, 2158.4861, 2083.4512, 10.8203, 3.0); return 1; } return 0; } Link to comment Share on other sites More sharing options...
0 vopojtepek 0 Odesláno: 27. Květen, 2014 Author Share Odesláno: 27. Květen, 2014 Dík Link to comment Share on other sites More sharing options...
Dotaz
vopojtepek 0
Ahojte, pomohol by mi niekto ako opravím tieto chyby ?? (Mohol by aj vysvetliť) ...
Link to comment
Share on other sites
3 odpovědí na tuto otázku
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