Y_ini player pos saving
#1

Hi, how to save and load player positions with Y_ini ?
I succesfuly made that players position gets saved, but how do i load it when player connects?
This is how i saved it.
Код:
		new Float:X, Float:Y, Float:Z;
 		GetPlayerPos(playerid, X, Y, Z);
 		INI_WriteFloat(PlayerAcc, "SpawnX", X);
 		INI_WriteFloat(PlayerAcc, "SpawnY", Y);
 		INI_WriteFloat(PlayerAcc, "SpawnZ", Z);
The same problem is with interiors. I know how to save it but i cant understand how to load it
Reply
#2

Try using this on on player disconect vefore the saving

GetPlayerPos(playerid, rx, ry, rz);

then you want to save them so what you then do is save it also i dontknow what your using so i dont know if you have rx ry rz defined under a seperate public statement
Reply
#3

no man i just showed what code i use to save. It works perfect.
Just i dont know how to load it when player logs in.
Im using https://sampforum.blast.hk/showthread.php?tid=210277
Reply
#4

bump
Reply
#5

help?
Reply
#6

bump
Reply
#7

Use INI_ParseFile from that topic, it explains how to load user files. Also, read the forum rules and don't bump posts more than once every 48 hours.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)