error 047: array sizes do not match, or destination array is too small - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: error 047: array sizes do not match, or destination array is too small (
/showthread.php?tid=243995)
error 047: array sizes do not match, or destination array is too small -
bijoyekuza - 25.03.2011
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.
Re: error 047: array sizes do not match, or destination array is too small -
iJumbo - 25.03.2011
what line is the error?
Re: error 047: array sizes do not match, or destination array is too small -
bijoyekuza - 25.03.2011
PlayerInfo[id][pUnit] = unit;
Re: error 047: array sizes do not match, or destination array is too small -
MadeMan - 25.03.2011
Make pUnit to 32
Re: error 047: array sizes do not match, or destination array is too small -
bijoyekuza - 25.03.2011
Thank you.