Cmd in the dialog error - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Cmd in the dialog error (
/showthread.php?tid=435079)
Cmd in the dialog error -
sanel007 - 05.05.2013
I tried using a tutorial to make cmd in the dialog, and when I'm all finished I go compile expel me eror....
Here's a picture Eror:
http://www.zaslike.com/files/pdx9i6k2v8vu8vc4kz9.jpg
Here's a picture I made commands:
http://www.zaslike.com/files/95mqwgpp25fkmlrub9s.jpg
Re: Cmd in the dialog error -
Neil. - 05.05.2013
Case 0
:
Shouldn't be a semicolon
Re: Cmd in the dialog error -
sanel007 - 05.05.2013
I know that I have improved here but still the same eror
Re: Cmd in the dialog error -
MattyG - 05.05.2013
Copy and paste your whole OnDialogResponse here.
Re: Cmd in the dialog error -
Pottus - 05.05.2013
That is some ugly coding, paste it at least.
Re: Cmd in the dialog error -
sanel007 - 06.05.2013
Here's the entire command
COMMAND:vikendica(playerid, params [])
{
ShowPlayerDialog(playerid, DIALOG_VIKENDICA, DIALOG_STYLE_LIST, "Vikendica Sistem", "Otkljucaj\nZakljucaj\nProdaj igracu", "Odaberi", "Odustani");
return 1;
}
Here is the Dialog:
if(dialogid == DIALOG_VIKENDICA)
{
if(!response) return SendClientMessage(playerid,-1,"Odustali ste");
{
switch(listitem)
{
case 0:
{
SendClientMessage(playerid, -1, "Zakljucali ste vikendicu");
return 1;
}
case 1:
{
SendClientMessage(playerid, -1, "Otkljucali ste vikendicu");
return 1;
}
case 2:
{
SendClientMessage(playerid, -1, "Prodaj igracu");
return 1;
}
}
}
}