Dini saving
#1

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)

pawn Код:
new VehOwned[MAX_VEHICLES];

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{

     if(vehicleid == vehicle && ispassenger == 0)
    {
     VehOwned[vehicleid] = 1;
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)