got problem with command
#4

As the others above have said, somewhere above that code you may be missing a } somewhere.
This can be found easily by commenting out (see below for example) sections of code, in this case, other commands, until you don't get errors.

Example of commenting out code
pawn Код:
print("Hello world!");
//print("This will not be said!");

public OnPlayerCommandText(playerid,cmdtext[]){
    if(!strcmp(cmdtext,"/Rawr",true)){
        SendClientMessage(playerid,0xFF0000FF,"You typed /Rawr!");
        return 1;
    }/*
    if(!strcmp(cmdtext,"/Nope",true)){
        SendClientMessage(playerid,0xFF0000FF,"This command will not work!");
        return 1;
    }*/

    return 0;
}
Reply


Messages In This Thread
got problem with command - by TheKingOfSamp - 16.08.2011, 22:35
Re: got problem with command - by farris - 17.08.2011, 00:27
Re: got problem with command - by ElieJabbour - 17.08.2011, 00:30
Re: got problem with command - by Badger(new) - 17.08.2011, 05:18

Forum Jump:


Users browsing this thread: 3 Guest(s)