HELP Error in command (001)
#8

Instead of only giving code also explain them what they did wrong and why it gave the error!

pawn Код:
if(!strcmp(cmdtext,"/kill",true))
{
    SendClientMessage(playerid, COLOR_GREEN,"www.ZynaGaming.com");
    // Do something here
    return 1;
}
You have used ("string") but using that you forgot to close the function with a ). The compiler misses the ) and that is why it gives that error: expected token ' ' but found ' '. You can either remove these "( )" in the message parameter because it's not really necessary but you can also add another ")" so it closes properly!
Reply


Messages In This Thread
HELP Error in command (001) - by BoyDenker - 01.02.2012, 14:18
Re: HELP Error in command (001) - by vakhtang - 01.02.2012, 14:24
Re: HELP Error in command (001) - by BoyDenker - 01.02.2012, 14:27
Re: HELP Error in command (001) - by vakhtang - 01.02.2012, 14:27
Re: HELP Error in command (001) - by Konstantinos - 01.02.2012, 14:29
Re: HELP Error in command (001) - by vakhtang - 01.02.2012, 14:29
Re: HELP Error in command (001) - by Konstantinos - 01.02.2012, 14:32
Re: HELP Error in command (001) - by Jochemd - 01.02.2012, 14:33
Re: HELP Error in command (001) - by BoyDenker - 01.02.2012, 14:35
Re: HELP Error in command (001) - by BoyDenker - 01.02.2012, 14:37

Forum Jump:


Users browsing this thread: 1 Guest(s)