23.06.2018, 14:21
Is parsing file directly? If not, data could be null or not loaded properly. Debug to see yourself:
The problem probably lies with vModel. If model ID is not valid, CreateVehicle will return 65535 which is out of bounds (run time error 4).
pawn Код:
INI_ParseFile(file, "LoadVeh_%s", .bExtra = true, .extra = v);
printf("DEBUG LoadPlayerVehicles:\nvOwner: \"%s\"\nvModel: %d", VehicleInfo[v][vOwner], VehicleInfo[v][vModel]);
if(!strcmp(GetName(playerid), VehicleInfo[v][vOwner], false))