preoblem with script
#1

i have this script:
Code:
  new cmd[128];
	new tmp[128];
	new idx;
	new giveplayername[MAX_PLAYER_NAME];
	new sendername[MAX_PLAYER_NAME];
	new string[128];
	cmd = strtok(cmdtext,idx);   // Line 1881

	for(new i = 0; i < GetMaxPlayers(); i++)
	{
	  if (IsPlayerConnected(i))
	  {
	    if (AccountInfo[i][AdminLevel] > 0 && ViewCmds[i] == 1)
	    {
	      for(new v = 0; v < sizeof(ViewCommands); v++) if (!strcmp(cmdtext, ViewCommands[v], true))
	      {
	        GetPlayerName(playerid, sendername, sizeof sendername);
	        format(tmp, 128, "[VIEWCMDS] [%d]%s: %s", playerid, sendername, cmdtext);
	        SendClientMessage(i, PURPLE, tmp);
	      }
	    }
	  }
	}
and i have this error:
Code:
G:\samp\1111.pwn(1881) : error 047: array sizes do not match, or destination array is too small
so what is problem on this?
Reply


Messages In This Thread
preoblem with script - by Selluliitti_mies - 28.02.2009, 15:03
Re: preoblem with script - by Burridge - 28.02.2009, 15:05
Re: preoblem with script - by Selluliitti_mies - 28.02.2009, 15:15
Re: preoblem with script - by Burridge - 28.02.2009, 15:17
Re: preoblem with script - by Selluliitti_mies - 28.02.2009, 15:18

Forum Jump:


Users browsing this thread: 1 Guest(s)