07.11.2010, 07:37
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):
And here's what it saves:
Don't bother the last int and world... Anyway, there should be a period/dot on the X, Y and Z.
What's wrong?
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);
Код:
LastX=1157971900 LastY=1151749530 LastZ=1093477339 LastInt=0 LastWorld=0
What's wrong?