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=553417)



error 047: array sizes do not match, or destination array is too small - sirvanec - 29.12.2014

Line

Quote:

format(str, 256, "~n~~n~~n~~n~~n~~n~~n~~n~~w~You picked up a %s%s ~w~Package!", textcolor, color);




Re: error 047: array sizes do not match, or destination array is too small - sirvanec - 29.12.2014

up...


Re: error 047: array sizes do not match, or destination array is too small - CalvinC - 29.12.2014

Do you have a "new string[256]" above that somewhere?
If there's another value in the [ ], then change it to 256.


Re: error 047: array sizes do not match, or destination array is too small - jackx3rx - 29.12.2014

Does the size of the string match? If not, this try:

pawn Код:
format(str, sizeof(str), "~n~~n~~n~~n~~n~~n~~n~~n~~w~You picked up a %s%s ~w~Package!", textcolor, color);



Re: error 047: array sizes do not match, or destination array is too small - sirvanec - 29.12.2014

CalvinC, no i have not!
jackx3rx, i'm still get same problem


Re: error 047: array sizes do not match, or destination array is too small - sirvanec - 29.12.2014

////////////