27.05.2017, 05:42
(
Last edited by Kane; 27/05/2017 at 07:17 AM.
)
Hi, got a problem and not sure how to fix it.
Two of these errors:
And the error occurs here:
Edit:
By changing carOwner[128] to carOwner[255] it fixed the error for carOwner. Not sure why to be honest if anyone could explain that. Error still occurs with plates.
PHP Code:
error 047: array sizes do not match, or destination array is too small
PHP Code:
enum E_NUM{
carOwner[128],
carPlates[32],
};
PHP Code:
stock LoadCars()
{
new
string[128], FileName[128];
for(new i = 0; i < MAX_PLAYER_VEHICLES; i++)
{
format(FileName, sizeof(FileName), "PlayerVehicles/%d.ini", i);
if(fexist(FileName)){
CarData[i][carOwner] = dini_Get(FileName, "carOwner");
CarData[i][carPlates] = dini_Get(FileName, "carPlates");
By changing carOwner[128] to carOwner[255] it fixed the error for carOwner. Not sure why to be honest if anyone could explain that. Error still occurs with plates.