Posts: 531
Threads: 72
Joined: Mar 2012
Reputation:
0
Case 0:
Shouldn't be a semicolon
Posts: 3
Threads: 1
Joined: Apr 2013
Reputation:
0
I know that I have improved here but still the same eror
Posts: 142
Threads: 5
Joined: Mar 2013
Reputation:
0
Copy and paste your whole OnDialogResponse here.
Posts: 4,885
Threads: 57
Joined: Jun 2012
Reputation:
0
That is some ugly coding, paste it at least.
Posts: 3
Threads: 1
Joined: Apr 2013
Reputation:
0
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;
}
}
}
}