OnPlayerCommandText
#1

Hey guys. I'm trying to make a command in a INCLUDE , but i can't ... When i type the command , nathing happend.

e.g. in INCLUDE:
pawn Код:
#include <a_samp>

#define OnPlayerCommandText CMD
forward CMD(playerid, cmdtext[]);

public CMD(playerid, cmdtext[]);
{
   if(!strcmp(cmdtext,"/hi",true))
   {
     SendClientMessage(playerid,0xFF,"Hello");
     return 1;
   }
}
I type /hi and he didn't show me anything
Reply


Messages In This Thread
OnPlayerCommandText - by russiany - 31.05.2009, 07:11
Re: OnPlayerCommandText - by Andom - 31.05.2009, 07:15
Re: OnPlayerCommandText - by russiany - 31.05.2009, 07:24
Re: OnPlayerCommandText - by yom - 31.05.2009, 08:12

Forum Jump:


Users browsing this thread: 1 Guest(s)