26.09.2010, 11:04
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"
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; }