invalid expression, assumed zero - 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: invalid expression, assumed zero (
/showthread.php?tid=650037)
invalid expression, assumed zero -
wallen - 19.02.2018
PHP код:
if(dialogid == DIALOG_SETTINGS)
{
if(response)
{
switch(listitem)
{
case 0:showuistyledialog(playerid);
case 1:disableduelinvite(playerid);
}
}
}
PHP код:
stock disableduelinvite(playerid)
{
IsDuelDisabled[playerid] = true;
SendClientMessage(playerid, -1, "{ff8000}(INFO) You now disabled duel invitations!");
ShowPlayerDialog(playerid, DIALOG_SETTINGS, DIALOG_STYLE_TABLIST_HEADERS, "{FF0000}Your IG- Settings",
"Setting \tWhat it means?\n\
UI Settings\t{4286f4}Used to hide/show textdraws.\n\
{ff0000}Disable Duel\t{4286f4}Used to disable invitations.\n\
PM Settings\t{4286f4}Used to disable PM's.\n\
Points Settings\t{4286f4}Used to disable others to send points.\n\
Skin Settings\t{4286f4}Used to set, and save skin.",
else
{
IsDuelDisabled[playerid] = false;
SendClientMessage(playerid, -1, "{ff8000}(INFO) You now enabled duel invitations!");
ShowPlayerDialog(playerid, DIALOG_SETTINGS, DIALOG_STYLE_TABLIST_HEADERS, "{FF0000}Your IG- Settings",
"Setting \tWhat it means?\n\
UI Settings\t{4286f4}Used to hide/show textdraws.\n\
Disable Duel\t{4286f4}Used to disable invitations.\n\
PM Settings\t{4286f4}Used to disable PM's.\n\
Points Settings\t{4286f4}Used to disable others to send points.\n\
Skin Settings\t{4286f4}Used to set, and save skin.",
"Select", "Leave");
}
}
D:\Games and Apps\SA-MP LSDM Project\LS DM\gamemodes\DBv1.pwn(2415 -- 2422) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
Something on the code
if i delete
PHP код:
case 1:disableduelinvite(playerid);
it compiles without errors..
Re: invalid expression, assumed zero -
wallen - 19.02.2018
Fixed..