Dini saving - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Dini saving (
/showthread.php?tid=108523)
Dini saving -
Jakku - 14.11.2009
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;
}