SA-MP Forums Archive
Login Attempts System - 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: Login Attempts System (/showthread.php?tid=489818)



.... - Ryan_Bowe - 24.01.2014

....


Re: Login Attempts System - Vince - 24.01.2014

Probably because you already increment the variable before they've even put their password.


Re: Login Attempts System - Ryan_Bowe - 24.01.2014

....


Re: Login Attempts System - Ryan_Bowe - 24.01.2014

....


Re: Login Attempts System - Sawalha - 24.01.2014

Why so when they join? it should be 0 when they join , first attempt when they put the incorrect password , you may increase the value of attempts..
So at on player connect
pawn Код:
LoginAttempts[playerid] = 0;
Try this.


Re: Login Attempts System - Ryan_Bowe - 24.01.2014

....


Re: Login Attempts System - Vince - 24.01.2014

Doesn't matter. You only need to increase the variable AFTER they've put in their (wrong) password, but BEFORE you show the dialog.


Re: Login Attempts System - Ryan_Bowe - 24.01.2014

....