SA-MP Forums Archive
error - 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 (/showthread.php?tid=211764)



error - NewbBeginner - 15.01.2011

Код:
CarInfo[veh][vowner] = GetName(playerid);
Код:
C:(1194) : error 047: array sizes do not match, or destination array is too small



Re: error - hanzen - 15.01.2011

You need to index the variable CarInfo


Re: error - NewbBeginner - 15.01.2011

How ?


Re: error - hanzen - 15.01.2011

Show me the enum.


Re: error - Joe Staff - 15.01.2011

pawn Код:
enum YourEnum
{
    //etc etc.
    vowner[MAX_PLAYER_NAME];
    //etc etc.
}
CarInfo[MAX_VEHICLES][YourEnum];



Re: error - NewbBeginner - 15.01.2011

I have it already.
It is enum vInfo
And CarInfo[max_vehicles][vowner]


Re: error - NewbBeginner - 16.01.2011

I still need help.


Re: error - Toreno - 16.01.2011

Show your enum.


Re: error - NewbBeginner - 16.01.2011

Код:
enum vInfo
{
	vowner[25],
}
Код:
new CarInfo[cars][vInfo];



Re: error - Typhome - 16.01.2011

use vowner[MAX_PLAYER_NAME]