07.12.2011, 20:43
Don't you need params?
If you get a warning about "symbol is never used - params", put #pragma unused params somewhere above the loop.
Hope this helps
Код:
COMMAND:admins(playerid, params[]) { new string[64]; new name[MAX_PLAYER_NAME]; for(new i; i < MAX_PLAYERS+1; i++) { if(PlayerInfo[i][isAdmin] == 1) { GetPlayerName(i, name, sizeof(name)); format(string, sizeof(string), "%d LVL ADMIN: %s", PlayerInfo[i][AdminLvl], name); SendClientMessage(playerid, COLOR_YELLOW, string); } } <---- Insert 1 row here return 1; }
Hope this helps