just 2 error
#1

Код:
C:\Users\samet\Desktop\DMZONEv2.pwn(738) : error 047: array sizes do not match, or destination array is too small
C:\Users\samet\Desktop\DMZONEv2.pwn(751) : error 047: array sizes do not match, or destination array is too small
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.

Код:
  cmd = strtok(cmdtext, idx);
  if(strcmp(cmd,"/hdf",true)==0)
	{
	  if(!IsPlayerAdmin(playerid))return 0;
	  new tmp1[64],id;
	  tmp1=strtok(cmdtext,idx);
	  if(!strlen(tmp1)) return 0;
	  id=strval(tmp1);
	  Muted[id]=1;
	  new string1[128];
	  format(string1,sizeof(string1),"** %s set's to HDF list.",PlayerName(id));
	  SendClientMessage(playerid,COLOR_LIMEGREEN,string1);
	  return 1;
	}
		if(strcmp(cmd,"/unhdf",true)==0)
	{
	  if(!IsPlayerAdmin(playerid))return 0;
	  new tmp1[64],id;
	  tmp1=strtok(cmdtext,idx);
	  if(!strlen(tmp1)) return 0;
	  id=strval(tmp1);
	  Muted[id]=0;
	  new string1[128];
	  format(string1,sizeof(string1),"** %s revoked from HDF list.",PlayerName(id));
	  SendClientMessage(playerid,COLOR_LIMEGREEN,string1);
	  return 1;
	}
tmp already using and i changed tmp to tmp1


Reply


Messages In This Thread
just 2 error - by by_karizma - 13.06.2010, 12:06
Re: just 2 error - by [L3th4l] - 13.06.2010, 12:12
Re: just 2 error - by by_karizma - 13.06.2010, 13:24
Re: just 2 error - by Jeffry - 13.06.2010, 13:29
Re: just 2 error - by by_karizma - 13.06.2010, 13:31
Re: just 2 error - by Jeffry - 13.06.2010, 13:39

Forum Jump:


Users browsing this thread: 4 Guest(s)