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=600250)
error 047: array sizes do not match, or destination array is too small -
Aa12 - 05.02.2016
Код:
enum hInfo
{
hOwner[MAX_PLAYER_NAME+1],
};
new HouseInfo[MAX_HOUSES][hInfo];
HouseInfo[houseid][hOwner]="word"; // 293
(293) : error 047: array sizes do not match, or destination array is too small
why and what are the other ways to save "word" into HouseInfo[houseid][hOwner]
Re: error 047: array sizes do not match, or destination array is too small -
Mencent - 05.02.2016
Write it like this:
PHP код:
format(HouseInfo[houseid][hOwner],MAX_PLAYER_NAME+1,"word");