07.12.2011, 20:37
Here's my CMD, it works but every time returns "unknown command".
I mean, when I write CMD In-Game it shows like this:
pawn Код:
COMMAND:admins(playerid)
{
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);
}
}
return 1;
}
pawn Код:
4 LVL ADMIN: Nickname
5 LVL ADMIN: nickname
SERVER: Unknown command