SA-MP Forums Archive
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)
+--- Thread: error 047: array sizes do not match, or destination array is too small (/showthread.php?tid=459343)



error 047: array sizes do not match, or destination array is too small - theYiin - 22.08.2013

EDIT:

Solved: http://forum.sa-mp.com/showpost.php?...&postcount=203

pawn Код:
enum _:eArr
{
  eArr1,
  eArr2,
  eArr3
};

enum e
{
  eA,
  eB,
  eC[eArr],
  eD
};

func(b[eArr] = {0, ...})
{
  for(new i; i != eArr; ++i)
    printf("%i", b[i]);
}

main(){

  new a[e];

  sscanf("1 2 3 4 5", "a<i>[5]", a);

  func(a[eC]); // error 047: array sizes do not match, or destination array is too small
}
what is wrong with it and how to fix it?