Posts: 1,733
Threads: 187
Joined: Oct 2014
Reputation:
0
Hello. When i get score or cash or somethin else and i do /stats it shows the score etc..
But if i relog it doesn't save them :O
What code do i need to show ya?
Posts: 1,733
Threads: 187
Joined: Oct 2014
Reputation:
0
I already got register login system.. i don't really wanna remove it.
Posts: 3,324
Threads: 96
Joined: Sep 2013
Show us your onplayerdisconnect, or at least the part where you save the players stats
Posts: 3,324
Threads: 96
Joined: Sep 2013
Ok, so your using Yini, that looks good i think, how about your onplayerconnect?
Posts: 3,324
Threads: 96
Joined: Sep 2013
Lol, thats looking good too, how about LoadUser callback?
Posts: 3,324
Threads: 96
Joined: Sep 2013
You never set the players score when loading. Put this
SetPlayerScore(playerid, PlayerInfo[playerid][pScore]);
SetPlayerMoney(playerid, PlayerInfo[playerid][pCash]);
Before the return in the LoadUser callback.
Then report your results after compiling and testing.