Help with /Announce.
#1

Hi, i created a command /announce in which you say something and it appears as gametext. It works fine, but the problem i can't fix is it shows Unknown Command even that it is working fine. Here's the script:

Код:
COMMAND:announce(playerid, params[])
{
  new announce1, string[150];
  if(ALygis[playerid] >= 5)
  {
  	if(sscanf(params,"s",announce1))
  	{
    	SendClientMessage(playerid,orandzine,"{FBDF89}[FunZoneLT]>> /announce [pranesimas]");
  	}
    format( string, sizeof(string), "~g~%s", announce1);
    GameTextForAll( string, 6000, 3 );
  }
  else
  {
    SendClientMessage(playerid,raudona,"[FunZoneLT]>> Jus negalite naudoti sitos komandos.");
  }
  return 1;
}
Does anyone know how to fix this?
Reply


Messages In This Thread
Help with /Announce. - by Type-R - 05.05.2011, 22:33
Re: Help with /Announce. - by Deskoft - 05.05.2011, 22:46
Re: Help with /Announce. - by Type-R - 06.05.2011, 01:27
Respuesta: Help with /Announce. - by Alex_Obando - 06.05.2011, 01:42
Respuesta: Help with /Announce. - by Alex_Obando - 06.05.2011, 01:44
Re: Help with /Announce. - by Type-R - 06.05.2011, 02:02

Forum Jump:


Users browsing this thread: 1 Guest(s)