Help STRCMP
#4

pawn Код:
if(strcmp(inputtext,pass, false) == 0) return ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT, "Login Information", "Please Enter Your Password, You Have Entered Wrong Password", "Enter", "Quit");
strcmp(); returns 0, if the string matches, and 1 if it doesn't. strcmp on the wiki


ThePhenix is right also. You'd need to check if the inputtext is there, and not null.

It also looks like you're not hashing passwords. I strongly suggest you do.
Reply


Messages In This Thread
Help STRCMP - by Osamakurdi - 26.01.2018, 16:43
Re: Help STRCMP - by Osamakurdi - 26.01.2018, 17:12
Re: Help STRCMP - by ThePhenix - 26.01.2018, 17:23
Re: Help STRCMP - by DobbysGamertag - 26.01.2018, 17:27
Re: Help STRCMP - by Osamakurdi - 26.01.2018, 17:28
Re: Help STRCMP - by ThePhenix - 26.01.2018, 17:31
Re: Help STRCMP - by Osamakurdi - 26.01.2018, 17:36
Re: Help STRCMP - by Osamakurdi - 26.01.2018, 17:45

Forum Jump:


Users browsing this thread: 1 Guest(s)