Admin say problem
#1

Hello everyone , i made an /asay command that allows the admin to send a message to the players. i compiled the .pwn file and there is no errors/warnings , but in game , the command is not working...
Maybe you can tell me what should i do..
Here's the cmd

PHP код:
if(!strcmp(cmd"/asay2"))
    {
  {
  if(!
IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0xFFFFFFFF,"You are not an admin !");
  new 
text[128], string[128];
  if(
sscanf(params"s[128]",text)) return SendClientMessage(playerid0xFFFFFFFF"Usage: /asay [text]");
  else
  {
  new 
pName[128];
  
GetPlayerName(playerid,pName,128);
  
format(string,sizeof string,"~b~%s:~r~%s",pName,text);
  
GameTextForAll(string,3000,4);
  }
  }
  return 
1;

Reply


Messages In This Thread
Admin say problem - by Soumi - 19.03.2011, 11:05
Re: Admin say problem - by Biesmen - 19.03.2011, 11:13
Re : Re: Admin say problem - by Soumi - 19.03.2011, 11:20
Re: Admin say problem - by Biesmen - 19.03.2011, 11:44
Re : Admin say problem - by Soumi - 19.03.2011, 12:00

Forum Jump:


Users browsing this thread: 1 Guest(s)