Saving positions, but no dots/periods? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Server (
https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (
https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Saving positions, but no dots/periods? (
/showthread.php?tid=188318)
Saving positions, but no dots/periods? -
Kyle_Olsen - 07.11.2010
I have a wierd problem...
I am making a gamemode, and now I'm working on the save players positions thing, but something is all wrong.
Here's the code I use for that part (in onplayerdisconnect):
Код:
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
Int = GetPlayerInterior(playerid);
World = GetPlayerVirtualWorld(playerid);
dini_IntSet(file, "LastX", x);
dini_IntSet(file, "LastY", y);
dini_IntSet(file, "LastZ", z);
dini_IntSet(file, "LastInt", Int);
dini_IntSet(file, "LastWorld", World);
And here's what it saves:
Код:
LastX=1157971900
LastY=1151749530
LastZ=1093477339
LastInt=0
LastWorld=0
Don't bother the last int and world... Anyway, there should be a period/dot on the X, Y and Z.
What's wrong?
Re: Saving positions, but no dots/periods? -
Lightning[SV] - 07.11.2010
Use dini_FloatSet
Re: Saving positions, but no dots/periods? -
rbN. - 07.11.2010
dini_FloatSet
edit: too late