07.02.2012, 20:54
Код:
dcmd_a(playerid,params[]) { new msg[128]; if(PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, COLOR_RED, "Unknown command. Use /cmds to see our server commands."); if(sscanf(params,"s",msg)) { SendClientMessage(playerid,COLOR_RED,"USAGE: /a [Message]"); return 1; } format(msg,sizeof(msg),"%s: %s",PlayerName(playerid),msg); for(new i = 0; i < MAX_PLAYERS; i++) { if(PlayerInfo[i][pAdmin] > 0) { SendClientMessage(i,COLOR_PURPLE,msg); } } return 1; }
I tried with new msg[512] but no effect :S
Where is the prob?