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=191196)
error 047: array sizes do not match, or destination array is too small -
Biesmen - 18.11.2010
Hm, I'm not familair with this problem so I'd like to ask for help.
I've been working with someone on a system for a while. When I decided to add some strings to a file, I had this error:
Код:
error 047: array sizes do not match, or destination array is too small
It's located in an enum:
pawn Код:
EntPUMessage[156],
ExPUMessage[156]
And they are used here:
pawn Код:
PickupData[j][EntPUMessage] = dini_Get(file, "EntPUMess");
PickupData[j][ExPUMessage] = dini_Get(file, "ExPUMess");
I hope you're able to help me to solve this problem.
Thank you,
Biesmen
Re: error 047: array sizes do not match, or destination array is too small -
<Weponz> - 18.11.2010
Make them [256]? tried that?
Re: error 047: array sizes do not match, or destination array is too small -
Biesmen - 18.11.2010
Quote:
Originally Posted by <Weponz>
Make them [256]? tried that?
|
Yes. It failed.
I also tried [MAX_PLAYERS], [MAX_PLAYER_NAME] and [128].
They all failed.
Edit: Solved it, changed to 255. After some logic thinking I found a solution. ^^ Thanks