27.11.2012, 12:04
Don't use str[1000] in this case...
pawn Код:
CMD:admins(playerid, params[])
{
new bool:Count;
for(new i, j = GetMaxPlayers(); i != j; i++)
if(PlayerInfo[i][pAdmin] > 0)
{
new str[45], Admin[MAX_PLAYER_NAME];
GetPlayerName(i, Admin, MAX_PLAYER_NAME);
format(str, sizeof(str), "[Admin]'%s - level %d", Admin, PlayerInfo[i][pAdmin]);
SendClientMessage(playerid, lightred, str);
Count = true;
}
if(!Count) SendClientMessage(playerid, lightred, "[System]: No Admin Online!");
return 1;
}