[Help] Adding position info on register - 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: [Help] Adding position info on register (
/showthread.php?tid=488591)
[Help] Adding position info on register -
ranslsad - 18.01.2014
Hi, im new on pawno and im trying to make a save pos system.
That all works ok.
The problem is when i want to save new registered user info, the coordinates dont save.
I have:
Код:
new x[25] = "1546.512451", y[25] = "-1675.840332", z[25] = "13.562461";
dini_Set(file, "posX", x);
dini_Set(file, "posY", y);
dini_Set(file, "posZ", z);
This must save the file like this:
Код:
posX=1546.512451
posY=-1675.840332
posZ=13.562461
And it saves like this:
Код:
posX=1153519744.000000
posY=-992904448.000000
posZ=1096351744.000000
i tried defining variables with float but this ones dont write the dots.
Whats im doing wrong?
Thanks!
Greetings
Ranslsad
Re: [Help] Adding position info on register -
Smileys - 18.01.2014
you need to save it into files or a database with either INI saving systems, or SQLite/MySQL.
I prefer SQLite though.
Re: [Help] Adding position info on register -
Zamora - 18.01.2014
Change
to
Respuesta: Re: [Help] Adding position info on register -
ranslsad - 18.01.2014
Solved, thanks
Greetings
Ranslsad