Dini Loading problem and saving one... - 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 Loading problem and saving one... (
/showthread.php?tid=270271)
Dini Loading problem and saving one... -
[WSF]ThA_Devil - 19.07.2011
Well i know this will look stupid or i am just big DINI noob:
pawn Код:
new lock = 0;
new Float:vehx, Float:vehy, Float:vehz,Float:rot;
GetVehiclePos(PCar[playerid][CarId], vehx, vehy, vehz);
GetVehicleZAngle(PCar[playerid][CarId],rot);
dini_IntSet(save,"Cost", PCar[playerid][Cost]);
dini_IntSet(save, "VehId", PCar[playerid][VehId]);
dini_FloatSet(save, "X", vehx);
dini_FloatSet(save, "Y", vehy);
dini_FloatSet(save, "Z", vehz);
dini_FloatSet(save, "R",rot);
dini_IntSet(save, "Locked", lock);
dini_Set(save, "CarPass",name);
dini_IntSet(save, "RepairCost", PCar[playerid][RepairCost]);
Well i don't get errors and warning but it doesn't save location... and i set player already in vehicle... what is wrong?
Re: Dini Loading problem and saving one... -
JaTochNietDan - 19.07.2011
What's the value of the "save" variable?
Re: Dini Loading problem and saving one... -
SchurmanCQC - 19.07.2011
Quote:
Originally Posted by JaTochNietDan
What's the value of the "save" variable?
|
Yeah, he may have been saving to an invalid file, or just the wrong file as it is.
Re: Dini Loading problem and saving one... -
[WSF]ThA_Devil - 19.07.2011
well no! i'm such noob! i had #pragma unused ret_***** idk what was it... sorry....