HELP! Commands not working at all
#5

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
  if(strcmp(cmdtext, "/help", true))
  {
    SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: This is the /help command!");
    return 1;
    /* Returning '1' is used to notify the server that the command
    has successfully been processed. If you return true here you won't
    get that 'SERVER: Unknown Command.', and any conflicts will be
    avoided.
    */

  }
  return 0;
/* Returning '0' is used to inform the server that the command
has not been successfully processed, and passes it to other scripts.
If there hasn't been a successful process, then you will get that
'SERVER: Unknown Command.' error.
*/

}
What i done?
I removed the
pawn Код:
!
From:
pawn Код:
if(!strcmp(cmdtext, "/help", true))

Reply


Messages In This Thread
HELP! Commands not working at all - by Cardinaal - 19.06.2010, 08:41
Re: HELP! Commands not working at all - by Cardinaal - 19.06.2010, 09:01
Re: HELP! Commands not working at all - by Cardinaal - 19.06.2010, 09:57
Re: HELP! Commands not working at all - by Cardinaal - 19.06.2010, 11:25
Re: HELP! Commands not working at all - by Wasim_Cortez - 19.06.2010, 11:30
Re: HELP! Commands not working at all - by Cardinaal - 19.06.2010, 11:32
Re: HELP! Commands not working at all - by Cardinaal - 19.06.2010, 11:34
Re: HELP! Commands not working at all - by Wasim_Cortez - 19.06.2010, 11:35
Re: HELP! Commands not working at all - by Wasim_Cortez - 19.06.2010, 11:37
Re: HELP! Commands not working at all - by Cardinaal - 19.06.2010, 11:57

Forum Jump:


Users browsing this thread: 1 Guest(s)