Need 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)
+--- Thread: Need help (
/showthread.php?tid=570621)
Need help -
GShock - 12.04.2015
Hello... There's a problem with my reg system.. I guess..
Each time a player joins and if he doesn't register , a file is created in my database. How will I make it remove automatically if that player doesn't register?
Player file is not registered look like this :-
Player file if registered :-
Re: Need help -
Stinged - 12.04.2015
You're saving the player's data whenever they quit, even if they didn't register.
Make a variable to check if the player registered, and use it in OnPlayerDisconnect.
Re: Need help -
R0 - 12.04.2015
Exactly,you are saving their stats when they disconnect,so even if they are not registered they will get their stats saved.
Re: Need help -
GShock - 12.04.2015
Works like a charm! I use IsPlayerRegistered
It's working now. Thank you so much guys ^_^
+raped :P