Admin say problem
#1

Hello everybody , i need some help for this command , there is no errors or warnings , it's just not working in game ,
When i type , for example /asay Hey , it shows /asay [text]

Here's the code

PHP код:
if(!strcmp(cmd"/asay"))
  {
  if(!
IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0xFFFFFFFF,"You are not an admin !");
  new 
text[128];
  if(
sscanf(params"s[128]",text)) return SendClientMessage(playerid0xFFFFFFFF"Usage: /asay [text]");
  new 
string[128];
  new 
pName[128];
  
GetPlayerName(playerid,pName,128);
  
format(string,sizeof string,"[ADMIN]%s: %s",pName,text);
  
SendClientMessageToAll(0xA10000AA,string);
  return 
1;

Thanks !!
Reply


Messages In This Thread
Admin say problem - by Soumi - 19.03.2011, 15:59
Re: Admin say problem - by Biesmen - 19.03.2011, 16:01
Re : Admin say problem - by Soumi - 19.03.2011, 16:04
Re: Re : Admin say problem - by Ihsan-Cingisiz - 19.03.2011, 16:11
Re: Admin say problem - by austin070 - 19.03.2011, 16:14
Re : Admin say problem - by Soumi - 21.03.2011, 18:10

Forum Jump:


Users browsing this thread: 1 Guest(s)