26.09.2010, 11:21
Quote:
Plus, you don't need the string, waste of 128 cells
![]() pawn Код:
|
Quote:
pawn Код:
pawn Код:
You are checking the length, of a non existing string, thats why you don't see anything ![]() Also if you are using the sscanf2 plugin, use 's[128]' instead of 'z' Its outdated. |
Код:
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(Announcement) >= 1) { GameTextForAll( string, 5000, 3 ); } else { SendClientMessage( playerid, WHITE, "SYNTAX: /ann [message]" ); } } } return 1; }
no matter what you type.. but with "z" no responds at all :/