02.05.2013, 20:06
(
Последний раз редактировалось Facerafter; 02.05.2013 в 20:43.
)
I got the following error:
On these 2 lines:
And..
But I can't see whats wrong with it?
EDIT: Pastebin: http://pastebin.com/xgvJnZ4g
Errors are in Line 10 and 35
Код:
error 029: invalid expression, assumed zero
Код:
ShowPlayerDialog(playerid, PCMENU, DIALOG_STYLE_LIST, "Provoking Cops is allowed ?","Yes it is\nIf the cop Agree\nNever unless with Admin Permission", "Select", "Cancel");
Код:
if(dialogid == PCMENU)
Код:
if(dialogid == PGMENU)
{
if(response)
{
if(listitem == 0) //
{
if(RegistrationStep[playerid] == 5)
{
RegistrationStep[playerid] = 6;
ShowPlayerDialog(playerid, PCMENU, DIALOG_STYLE_LIST, "Provoking Cops is allowed ?","Yes it is\nIf the cop Agree\nNever unless with Admin Permission", "Select", "Cancel");
return 1;
}
}
if(listitem == 1) //
{
if(RegistrationStep[playerid] == 5)
{
SendClientMessage(playerid, COLOR_RED, "Answer Result : Wrong - You have been Kicked.");
Kick(playerid);
return 1;
}
}
if(listitem == 2) //
{
if(RegistrationStep[playerid] == 5)
{
SendClientMessage(playerid, COLOR_RED, "Answer Result : Wrong - You have been Kicked.");
Kick(playerid);
return 1;
}
}
}
return 1;
}
if(dialogid == PCMENU)
{
if(response)
{
if(listitem == 0) //
{
if(RegistrationStep[playerid] == 6)
{
SendClientMessage(playerid, COLOR_RED, "Answer Result : Wrong - You have been Kicked.");
Kick(playerid);
return 1;
}
}
if(listitem == 1) //
{
if(RegistrationStep[playerid] == 6)
{
SendClientMessage(playerid, COLOR_RED, "Answer Result : Wrong - You have been Kicked.");
Kick(playerid);
return 1;
}
}
if(listitem == 2) //
{
if(RegistrationStep[playerid] == 6)
{
RegistrationStep[playerid] = 7;
ShowPlayerDialog(playerid, CKMENU, DIALOG_STYLE_LIST, "What does CK mean?","Never heard of\nChicken Krap\nCharchter Kill", "Select", "Cancel");
return 1;
}
}
}
return 1;
}
Errors are in Line 10 and 35

