Saving coords, tag mismatch
#1

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

which saving system are you using?
Reply
#3

YSI\y_ini
Reply
#4

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
Reply
#5

Yes i have!
Reply
#6

Coordinates are floats. You need to use INI_WriteFloat. You also need to save the Y and Z coordinate, not just the X.
Reply
#7

Try the following

new v = PlayerInfo[playerid][pLx];
INI_WriteInt(File,"x",v);
Reply
#8

Why are you posting the INCORRECT solution if I've already posted the CORRECT one..?
Reply
#9

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!
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)