Saving positions, but no dots/periods?
#1

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?
Reply
#2

Use dini_FloatSet
Reply
#3

dini_FloatSet

edit: too late
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)