19.03.2009, 18:06
The command:
The aim of the command: To display all online administrators
The issue: Compiles, but the command just says SERVER: Unknown Command, also, the server executable spits out this warning: SCRIPT: Bad parameter count (Count is 8, Should be 4)
SCRIPT: Bad parameter count (Count is 8, Should be 4)
I'm sure the issue here is blindingly obviously, any help is appreciated.
Regards,
~Aim
Код:
if (strcmp("/admins", cmdtext, true, 10) == 0) { new string[256]; for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(Level[i] == 1) { GetPlayerName(i, sendername, sizeof(sendername)); format(string, 256, "Administrator: %s",sendername); SendClientMessage(playerid, COLOR_WHITE, string); } } } }
The issue: Compiles, but the command just says SERVER: Unknown Command, also, the server executable spits out this warning: SCRIPT: Bad parameter count (Count is 8, Should be 4)
SCRIPT: Bad parameter count (Count is 8, Should be 4)
I'm sure the issue here is blindingly obviously, any help is appreciated.
Regards,
~Aim