SA-MP Forums Archive
Error when compiling - 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 when compiling (/showthread.php?tid=546175)



Error when compiling - ScriptFohLife - 13.11.2014

What is wrong? :S

Код:
(131) : error 029: invalid expression, assumed zero
pawn Код:
else SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use that command!");



Re: Error when compiling - RonnyCZ - 13.11.2014

else if ..
or
the entire code


Re: Error when compiling - osman2571 - 13.11.2014

try else if


Re: Error when compiling - UltraScripter - 13.11.2014

osman answer


Re: Error when compiling - ScriptFohLife - 13.11.2014

I tried else if before but it didn't work


Re: Error when compiling - Dziugsas - 13.11.2014

I think it should be *else return SCM...*


Re: Error when compiling - UltraScripter - 13.11.2014

if the
pawn Код:
else if SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use that command!");
dont work
try this man :
pawn Код:
else
{
    SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use that command!");
}
and tell if it work's


Re: Error when compiling - Dziugsas - 13.11.2014

Quote:
Originally Posted by UltraScripter
Посмотреть сообщение
if the
pawn Код:
else if SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use that command!");
You can't do that...

pawn Код:
else return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use that command!");



Re: Error when compiling - UltraScripter - 13.11.2014

*if don't work tell


Re: Error when compiling - osman2571 - 13.11.2014

try this
else SCM(playerid, COLOR_WHITE, "You are not authorized to use that command!");