error 029: 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: error 029: invalid expression, assumed zero (
/showthread.php?tid=496443)
error 029: invalid expression, assumed zero -
KaliKs - 22.02.2014
hey guys any ideas why it does this??
line:
732
Код:
else SendClientMessage(playerid, -1, "You're not an administration");
after that
Re: error 029: invalid expression, assumed zero -
iThePunisher - 22.02.2014
show the full command
Re: error 029: invalid expression, assumed zero -
KaliKs - 22.02.2014
Код:
CMD:aduty(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] >= 1)
{
SendClientMessage(playerid, -1, "you are now on Administration Duty");
SendClientMessageToAll(-1, "Administration is now on duty!(/report if you need help)");
SetPlayerColor(playerid, 0xFF0000);
}
else
{
SendClientMessage(playerid, -1, "you are now off Administration Duty");
SendClientMessageToAll(-1, "Administration is now off duty!(Leave him to Roleplay)");
SetPlayerColor(playerid, 0xFFFFFF);
}
else SendClientMessage(playerid, -1, "You're not an administration");
return 1;
}
Re: error 029: invalid expression, assumed zero -
iThePunisher - 22.02.2014
try this
pawn Код:
CMD:aduty(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] >= 1)
{
SendClientMessage(playerid, -1, "you are now on Administration Duty");
SendClientMessageToAll(-1, "Administration is now on duty!(/report if you need help)");
}
else
{
SendClientMessage(playerid, -1, "you are now off Administration Duty");
SendClientMessageToAll(-1, "Administration is now off duty!(Leave him to Roleplay)");
SetPlayerColor(playerid, 0xFFFFFF);
}
if(PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, COLOR_RED, "You're not an administration");
return 1;
}
Re: error 029: invalid expression, assumed zero -
KaliKs - 22.02.2014
Thank you worked
Repd+