SA-MP Forums Archive
Register/Login Help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Register/Login Help (/showthread.php?tid=190096)



Register/Login Help - Steven82 - 14.11.2010

Alright so guys im tired it's around 11:48 pm for me and i think i mess up the code. On the player disconnecting it's not saving there money. When they first register they get 5000. But when i /q and check the script files it says 0$. I go in-game to make sure and it's still is at 0$. I think i messed up on the code but here it is. Please correct me if i'm wrong.

pawn Код:
dini_IntSet(file,"Money",PlayerInfo[playerid][pMoney]);
If thats not enough infomration just tell me and i'll add more of the code.


Re: Register/Login Help - iggy1 - 14.11.2010

Is it saving everything else you have in OnPlayerDisconnect?


Re: Register/Login Help - lavamike - 14.11.2010

Can you show where you set file?


Re: Register/Login Help - Steven82 - 14.11.2010

Nvm, fixed it, you can't save Money and Score on OnPlayerDisconnect i just remember that