SA-MP Forums Archive
[HELP PLEASE] Error 047 array sizes do not match.. - 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: [HELP PLEASE] Error 047 array sizes do not match.. (/showthread.php?tid=427938)



[HELP PLEASE] Error 047 array sizes do not match.. - Cheesus - 03.04.2013

Код:
enum bInfo {
    bOwned,
    bPrice,
    bOwner[MAX_PLAYER_NAME],
Код:
INI_String("bOwner", BusinessInfo[idx][bOwner], MAX_PLAYER_NAME);
ERROR:
Код:
(4724) : error 047: array sizes do not match, or destination array is too small
Whats wrong?


Re: [HELP PLEASE] Error 047 array sizes do not match.. - kamzaf - 03.04.2013

bOwner[MAX_STRING], to bOwner[MAX_PLAYER_NAME],


Re: [HELP PLEASE] Error 047 array sizes do not match.. - Cheesus - 03.04.2013

Thanks for the reply, but i still got the same error


Re: [HELP PLEASE] Error 047 array sizes do not match.. - Konstantinos - 03.04.2013

When you parse the data and loading them, what's the size of bOwner? It's probably smaller than 24.


Re: [HELP PLEASE] Error 047 array sizes do not match.. - Cheesus - 03.04.2013

Actually is INI_String isnt available anymore am i right?


Re: [HELP PLEASE] Error 047 array sizes do not match.. - Konstantinos - 03.04.2013

No, you're not. It's available and it saves the passed value as a string if the name matches. Make sure in the callback, you're trying to load the data, the size of bOwner is equal to MAX_PLAYER_NAME or 24.


Re: [HELP PLEASE] Error 047 array sizes do not match.. - Cheesus - 03.04.2013

Cant get it working..


Re: [HELP PLEASE] Error 047 array sizes do not match.. - Cheesus - 05.04.2013

Anyone?


Re: [HELP PLEASE] Error 047 array sizes do not match.. - Cheesus - 06.04.2013

I really need help with this..


Re: [HELP PLEASE] Error 047 array sizes do not match.. - Cheesus - 08.04.2013

Can anyone help me?