Help with the login 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help with the login system (
/showthread.php?tid=104452)
Help with the login system -
pierhs - 24.10.2009
I use a login system with dialog.If i put a wrong password i get the message "wrong password".if i put the correct password i can login but if i leave it blank i can still login.please help me(BTW im using gf)
Re: Help with the login system -
bigcomfycouch - 24.10.2009
Just check if the input box is empty:
Код:
if(!strlen(inputtext))
{
new loginmsg[] = "SERVER: INVALID PASSWORD!\n\tEnter Your Password";
ShowPlayerDialog(playerid, loginbox, 1, "Welcome to [insert name here]", loginmsg, "Login", "Quit");
return 1;
}
Re: Help with the login system -
mascii - 25.10.2009
im havin the exact same problem as this, hope your solution works!
Re: Help with the login system -
pierhs - 25.10.2009
I fixed it ty
Re: Help with the login system -
mascii - 25.10.2009
Quote:
Originally Posted by pierhs
I fixed it ty
|
same, thanks big comfy couch