14.11.2009, 13:33
I've tried to save vehicles status with dini, unsuccessfully.
This is just an example, not my real code:
My problem is how I can save that with dini when I restart the server and start again, it loads "VehOwned"- variable and sets it for vehicle was previously owned (Went In a vehicle)
This is just an example, not my real code:
My problem is how I can save that with dini when I restart the server and start again, it loads "VehOwned"- variable and sets it for vehicle was previously owned (Went In a vehicle)
pawn Код:
new VehOwned[MAX_VEHICLES];
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(vehicleid == vehicle && ispassenger == 0)
{
VehOwned[vehicleid] = 1;
}
return 1;
}