16.03.2016, 12:51
Add this to the top of OnVehicleSpawn:
And make sure all "vehicleid" variables(eg. "TruckPackages", "PlayerInfo[i][pVeh]") are initialised as MAX_VEHICLES in size.
PHP код:
public OnVehicleSpawn(vehicleid)
{
if (vehicleid < 0 || vehicleid == INVALID_VEHICLE_ID) return 1;
// Rest of code
return 1;
}