21.01.2012, 04:56
(
Последний раз редактировалось Scenario; 21.01.2012 в 05:37.
)
Thanks for the example, Kar! Say I do this:
Will it still do the same thing with CreateVehicleEx?
EDIT: Just a quick update. I have the following code under OnVehicleSpawn:
Now, the params are printing what they should so I'm assuming the vehicle params should be getting set. Am I missing something, because the params aren't setting...?
pawn Код:
vehicleVars[row][vVehicleServerID] = CreateVehicle
EDIT: Just a quick update. I have the following code under OnVehicleSpawn:
pawn Код:
public OnVehicleSpawn(vehicleid)
{
print("OVS called.");
printf("%d|%d|%d|%d|%d|%d|%d", vehicleVariables[vehicleid][vVehicleParams][0], vehicleVariables[vehicleid][vVehicleParams][1], vehicleVariables[vehicleid][vVehicleParams][2], vehicleVariables[vehicleid][vVehicleParams][3], vehicleVariables[vehicleid][vVehicleParams][4], vehicleVariables[vehicleid][vVehicleParams][5], vehicleVariables[vehicleid][vVehicleParams][6]);
SetVehicleParamsEx(vehicleid, vehicleVariables[vehicleid][vVehicleParams][0], vehicleVariables[vehicleid][vVehicleParams][1], vehicleVariables[vehicleid][vVehicleParams][2], vehicleVariables[vehicleid][vVehicleParams][3], vehicleVariables[vehicleid][vVehicleParams][4], vehicleVariables[vehicleid][vVehicleParams][5], vehicleVariables[vehicleid][vVehicleParams][6]);
return 1;
}

