CARS - 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)
+--- Thread: CARS (
/showthread.php?tid=423897)
CARS -
NuggaN - 19.03.2013
how can I save cars with Dini? i.e I bought a Car with a CMD and did "CreateVehicle"
How can I save this bought vehicle now?
Re: CARS -
NuggaN - 19.03.2013
But with Dini please
Re: CARS -
LarzI - 19.03.2013
Can't you just save the model ID of the vehicle you bought into your playerfile?
pawn Код:
dini_IntSet( PathToPlayerFile, "Vehicle", ModelIDForVehicle );
Then on spawn (or command) just CreateVehicle with that model
pawn Код:
dini_Int( PathToPlayerFile, "Vehicle" );
My dIni knowledge is a bit rusty, so I'm sorry if the syntax is somewhat incorrect.
Re: CARS -
NuggaN - 19.03.2013
dini_IntSet(Spielerdatei,"Vehicle",GetPlayerVehicl eID(playerid));
Like this?