Cmd in the dialog error
#1

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
Reply
#2

Case 0:
Shouldn't be a semicolon
Reply
#3

I know that I have improved here but still the same eror
Reply
#4

Copy and paste your whole OnDialogResponse here.
Reply
#5

That is some ugly coding, paste it at least.
Reply
#6

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;
}
}
}
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)