Saving coords, tag mismatch - 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 coords, tag mismatch (
/showthread.php?tid=421180)
Saving coords, tag mismatch -
edzis84 - 08.03.2013
Hello, how can i save my coords to ini file?
I tried this
Код:
INI_WriteInt(File,"x",PlayerInfo[playerid][pLx]);
But it shows me
Код:
warning 213: tag mismatch
Re: Saving coords, tag mismatch -
Apenmeeuw - 08.03.2013
which saving system are you using?
AW: Saving coords, tag mismatch -
edzis84 - 08.03.2013
YSI\y_ini
Re: Saving coords, tag mismatch -
nickdodd25 - 08.03.2013
Make sure you have pLx in your enum like this..
pawn Код:
//make sure its decared in your enum like
Float:pLx
//same goes for the y and z one
AW: Saving coords, tag mismatch -
edzis84 - 08.03.2013
Yes i have!
Re: Saving coords, tag mismatch -
MP2 - 08.03.2013
Coordinates are floats. You need to use INI_WriteFloat. You also need to save the Y and Z coordinate, not just the X.
Re : Saving coords, tag mismatch -
yusei - 08.03.2013
Try the following
new v = PlayerInfo[playerid][pLx];
INI_WriteInt(File,"x",v);
Re: Saving coords, tag mismatch -
MP2 - 08.03.2013
Why are you posting the INCORRECT solution if I've already posted the CORRECT one..?
AW: Re: Saving coords, tag mismatch -
edzis84 - 08.03.2013
Quote:
Originally Posted by MP2
Coordinates are floats. You need to use INI_WriteFloat. You also need to save the Y and Z coordinate, not just the X.
|
Thanks, this worked!