GameTextForAll
#1

Why doesnt this command work.. i get no errors when i compile
when i type "/ann text" in-game nothing happends but when i type /ann the
"SYNTAX: /ann [message]" shows so it must be something with the "GameTextForAll"

Код:
command(ann, playerid, params[])
{
	new Announcement[128], string[ 128 ];
	if( sscanf( params, "z", Announcement) )
	{
		if( Player[playerid][AdminLevel] >= 1 )
	    {
			SendClientMessage( playerid, WHITE, "SYNTAX: /ann [message]" );
		}
	}
	else
	{
	    if( Player[playerid][AdminLevel] >= 1)
	    {
			if(strlen(Ann) >= 1)
			{
			    format( string, sizeof( string ), " %s ", Announcement );
			    GameTextForAll( string, 5000, 3 );
			}
			else
			{
			    SendClientMessage( playerid, WHITE, "SYNTAX: /ann [message]" );
			}
		}
	}
	return 1;
}
Reply


Messages In This Thread
GameTextForAll - by FrankC - 26.09.2010, 11:04
Re: GameTextForAll - by playbox12 - 26.09.2010, 11:08
Re: GameTextForAll - by [XST]O_x - 26.09.2010, 11:17
Re: GameTextForAll - by FrankC - 26.09.2010, 11:21
Re: GameTextForAll - by playbox12 - 26.09.2010, 11:42
Re: GameTextForAll - by FrankC - 26.09.2010, 13:37
Re: GameTextForAll - by FrankC - 26.09.2010, 13:46

Forum Jump:


Users browsing this thread: 1 Guest(s)