Invalid Function or Declaration - 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 Function or Declaration (
/showthread.php?tid=350400)
Invalid Function or Declaration -
Thug_Tupac - 12.06.2012
Its Screen:

Code: if(strcmp(cmd,"/cnnopen" true) == 0) {
MoveObject(Gate,968,-2042.91809082,493.98721313,35.10251236, 2);
//Low Speed:2
SendClientMessage(playerid, COLOR_YELLOW, "CNN Karebi Gaigo"
return 1;
}
HELP ME Please Thanks

)
Re: Invalid Function or Declaration -
milanosie - 12.06.2012
Its not placed inside OnPlayerCommandText
And you forgot to close with ');'
Re: Invalid Function or Declaration -
Thug_Tupac - 12.06.2012
Please Edit Code:
Quote:
if(strcmp(cmd,"/cnnopen" true) == 0) {
MoveObject(Gate,968,-2042.91809082,493.98721313,35.10251236, 2);
//Low Speed:2
SendClientMessage(playerid, COLOR_YELLOW, "CNN Karebi Gaigo"
return 1;
}
|
Re: Invalid Function or Declaration -
Rudy_ - 12.06.2012
wrong..
Put it after OnPlayerCommandText
Re: Invalid Function or Declaration -
Thug_Tupac - 12.06.2012
Please Write Not Wrong Code
Re: Invalid Function or Declaration -
MP2 - 12.06.2012
Stop being lazy and do it yourself.
Add ');' to the end of the SendClientMessage line and put the code under OnPlayerCommandText. If you can't do that you have no hope of scripting so I recommend you give up now.