14.11.2010, 14:34
I have just started scripting again after a looong break..
I'm kinda confused about how to fix things again.
Is there something wrong with this command? I haven't tested it 100% yet, all I know is that it is working, but anyways saying unknown command at the end.
I'm kinda confused about how to fix things again.
Is there something wrong with this command? I haven't tested it 100% yet, all I know is that it is working, but anyways saying unknown command at the end.
Код:
COMMAND:admins(playerid, params[])
{
new string[256];
new pname[MAX_PLAYER_NAME];
SendClientMessage(playerid, grey, "Admins Online:");
for(new i=0;i<=MAX_PLAYERS;i++) {
if(adminlevel[i] >= 1) {
GetPlayerName(i, pname, sizeof(pname));
format(string,sizeof(string),"AdminLevel %d: %s[%d] ", adminlevel[i], pname, GetPlayerID(pname));
SendClientMessage(playerid, grey, string);
}
}
return 1;
}


Problem Solved
