SA-MP Forums Archive
Saving Position Using Y_INI - 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: Saving Position Using Y_INI (/showthread.php?tid=281416)



Saving Position Using Y_INI - 0_o - 05.09.2011

Can Anyone Just Lend Me a Code?? I Need A Saving Position System Using Y_INI


Re: Saving Position Using Y_INI - IceCube! - 05.09.2011

pawn Code:
new Float:x, Float:y, FLoat:z;
GetPlayerPos( x y, z );
INI_SetTag(File, "TAG");
INI_WriteFloat(File,"x", Float:x);
INI_WriteFloat(File,"y", Float:y);
INI_WriteFloat(File,"z", Float:z);
EDIT: I'm a n00b sorry xD

Edit im not a n00b force of habit been doing that for the past 20 mins


Re: Saving Position Using Y_INI - =WoR=Varth - 05.09.2011

Quote:
Originally Posted by IceCube!
View Post
pawn Code:
new Float:x, Float:y, FLoat:z;
GetPlayerPos( x y, z);
INI_SetTag(File, "TAG");
INI_WriteInt(File,"x", Float:x);
INI_WriteInt(File,"y", Float:y);
INI_WriteInt(File,"z", Float:z);
Just snippets as I made it here
It's float, not integer.


Re: Saving Position Using Y_INI - 0_o - 05.09.2011

well, can you compile it and tell me? cuz i made it something like this, compiled and found warnings. I Don't Got Pawno In This PC D: