PDA

View Full Version : Invalid Function or Declaration


Thug_Tupac
12/06/2012, 01:31 PM
Its Screen:http://oi46.tinypic.com/212u4hj.jpg
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 :))

milanosie
12/06/2012, 01:33 PM
Its not placed inside OnPlayerCommandText

And you forgot to close with ');'

Thug_Tupac
12/06/2012, 01:33 PM
Please Edit 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;
}

Rudy_
12/06/2012, 01:35 PM
wrong..
Put it after OnPlayerCommandText

Thug_Tupac
12/06/2012, 01:39 PM
Please Write Not Wrong Code

MP2
12/06/2012, 02:00 PM
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.