Little Login Problem.
#9

Quote:
Originally Posted by Kar
Посмотреть сообщение
okay i noticed that people are always telling me to use if "!strmp" but its not actually that if you use "strcmp" without the ! it returns 0

notice some of your old strcmp cmds they are if(!strcmp

and some are if(strcmp == 0 and stuff. anyways fuck that.

pawn Код:
if(strcmp(ppw, inputtext, true) != 0)
            {
                SendClientMessage(playerid,COLOR_RED,"Wrong Password");
                ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,"Login","Please Type Your Password Below To Login","Login","Cancel");
            }
thats my dialog seE? if(strcmp that means it wrong [/pawn]if(!strcmp) this means it matchs and is right[/pawn]

edit. as Faiths code above saying if strcmp , w/e,true = 0 see (True = 0) same as the false in your cmd
Yeah, as Faith said, I'll try changing that, but I thought that params there is "bool:ignorecase = false", which I don't, passwords to be secure should be case sensitive, but okay, I'll try.
Reply


Messages In This Thread
Little Login Problem. - by Toni - 04.08.2010, 14:43
Re: Little Login Problem. - by Faith - 04.08.2010, 14:51
Re: Little Login Problem. - by Toni - 04.08.2010, 14:54
Re: Little Login Problem. - by Mike Garber - 04.08.2010, 14:54
Re: Little Login Problem. - by Kar - 04.08.2010, 14:58
Re: Little Login Problem. - by Toni - 04.08.2010, 14:59
Re: Little Login Problem. - by Faith - 04.08.2010, 15:02
Re: Little Login Problem. - by Kar - 04.08.2010, 15:02
Re: Little Login Problem. - by Toni - 04.08.2010, 15:06
Re: Little Login Problem. - by Kar - 04.08.2010, 15:09

Forum Jump:


Users browsing this thread: 1 Guest(s)