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.