Something wrong in my login/register system
#2

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


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)