error 047: array sizes do not match, or destination array is too small
#1

hey scripters
I get this error
error 047: array sizes do not match, or destination array is too small

the command
Код:
dcmd_unitset(playerid, params[])
{
	new id,unit[32];
	if(!sscanf(params,"us[32]",id,unit))
	{
	    if(PlayerInfo[playerid][pCop] > 5)
	    {
	    PlayerInfo[id][pUnit] = unit;
	    }else return SendClientMessage(playerid,COLOR_AFOR,"Your rank doesnt allow you to use this tools !");
	}else return SendClientMessage(playerid,COLOR_RED,"Usage : /unitset [PLAYERID][UNITNAME]");
	return 1;
}
the variable
Код:
enum pInfo{
pCop,
pUnit[56],
}
I tried to make pUnit to [256] but its still doing it.
Reply
#2

what line is the error?
Reply
#3

PlayerInfo[id][pUnit] = unit;
Reply
#4

Make pUnit to 32
Reply
#5

Thank you.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)