Basic command.. probabbly blinding obvious error
#1

The command:
Код:
 	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 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
Reply


Messages In This Thread
Basic command.. probabbly blinding obvious error - by Acoole - 19.03.2009, 18:06
Re: Basic command.. probabbly blinding obvious error - by Nero_3D - 19.03.2009, 18:41

Forum Jump:


Users browsing this thread: 1 Guest(s)