07.01.2014, 18:14
I followed this tutorial : https://sampforum.blast.hk/showthread.php?tid=485633
My pastbin is : http://pastebin.com/cz6BA7v0
When I connect into the game, it always show me that my account is not registred, so I think that when I disconnect, it doesnt save. Is there a problem in the code ?
How Can I save player's data ?
PS: How can I spawn a player with his last position ?
I think that I have to place my code into OnPlayerSpawn but how should I proced ?
Maybe with this:
Thank you ! =)
My pastbin is : http://pastebin.com/cz6BA7v0
When I connect into the game, it always show me that my account is not registred, so I think that when I disconnect, it doesnt save. Is there a problem in the code ?
How Can I save player's data ?
PS: How can I spawn a player with his last position ?
I think that I have to place my code into OnPlayerSpawn but how should I proced ?
Maybe with this:
Код:
pInfo[playerid][posX] = cache_get_row_float(0, 7); pInfo[playerid][posY] = cache_get_row_float(0, 8); pInfo[playerid][posZ] = cache_get_row_float(0, 9);