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=428075)
error 047: array sizes do not match, or destination array is too small -
BigGroter - 04.04.2013
pawn Код:
pRank[129], //in the enum at the top of the script
pInfo[Player][pRank] = "New Member"; //inside a command.
The line that's in the command gives me the error error 047: array sizes do not match, or destination array is too small.
Any ideas?
Re: error 047: array sizes do not match, or destination array is too small -
judothijs - 04.04.2013
Remove the 129, it sets a size that you don't need, as the size is relative to what you put into it.
Re: error 047: array sizes do not match, or destination array is too small -
BigGroter - 04.04.2013
What should I have then? pRank[], pRank, etc?
Re: error 047: array sizes do not match, or destination array is too small -
Gamer_007 - 04.04.2013
pRank[64]; is enough i think
Re: error 047: array sizes do not match, or destination array is too small -
BigGroter - 04.04.2013
@Gamer_007 same problem.
Re: error 047: array sizes do not match, or destination array is too small -
BigGroter - 04.04.2013
Fixed.
Re: error 047: array sizes do not match, or destination array is too small -
RajatPawar - 04.04.2013
See, if you do:
pawn Код:
some_@_array[ 128 ] = " ";
You'll receive that. However, if you do:
pawn Код:
some_@_array[ 5 ] = "abcde";
You won't.
I hope you understand what I mean.
EDIT: I was too late.
Re: error 047: array sizes do not match, or destination array is too small -
BigGroter - 04.04.2013
I actually just changed it to
pawn Код:
format(pInfo[playerid][pRank],56,"New Member");
Thanks anyway, and I do understand what you mean.