23.06.2018, 16:41
OnPlayerDisconnect,
Use this
new Float:pX, Float:pY, Float:pZ
GetPlayerPos(playerid, pX, pY, pZ)
Then save them individually in the ENUM pX, pY, pZ
dini_intset(Accounts, "pX", pX)
dini_intset(Accounts, "pY", pY)
^ like this
and when a PLAYER CONNECTS
SetPlayerPos(playerid, pX, pY, pZ);
Just giving you example, because i don't know much about Y_INI or DINI, could've handled MySQL.
Use this
new Float:pX, Float:pY, Float:pZ
GetPlayerPos(playerid, pX, pY, pZ)
Then save them individually in the ENUM pX, pY, pZ
dini_intset(Accounts, "pX", pX)
dini_intset(Accounts, "pY", pY)
^ like this
and when a PLAYER CONNECTS
SetPlayerPos(playerid, pX, pY, pZ);
Just giving you example, because i don't know much about Y_INI or DINI, could've handled MySQL.