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



error 047: array sizes do not match, or destination array is too small [REP] - Swarn - 29.09.2016

Title says it all, "error 047: array sizes do not match, or destination array is too small" - Now, I can easily fix this issue by deleting the problem, however, I do not wish to delete it as it will break the script when it actually comes to use. Any ideas?

(21701) : error 047: array sizes do not match, or destination array is too small
Код:
	    tmp = strtok(text, idx);
(21922) : error 047: array sizes do not match, or destination array is too small
Код:
		tmp = strtok(text, idx);



Re: error 047: array sizes do not match, or destination array is too small [REP] - SickAttack - 29.09.2016

Why don't you switch over to SSCANF instead?


Re: error 047: array sizes do not match, or destination array is too small [REP] - Swarn - 29.09.2016

Is it worth the work?


Re: error 047: array sizes do not match, or destination array is too small [REP] - SickAttack - 29.09.2016

Yeah, it's really fast and simple.

https://sampforum.blast.hk/showthread.php?tid=602923


Re: error 047: array sizes do not match, or destination array is too small [REP] - Swarn - 30.09.2016

Alright, I'll do that, thanks bud. REP added


Re: error 047: array sizes do not match, or destination array is too small [REP] - Quinncell - 30.09.2016

Also have a read at the error itself to make you understand a bit better.

>https://sampwiki.blast.hk/wiki/Errors_Li...y_is_too_small