Checking if a string is empty, shouldn't this do it?
#1

pawn Код:
if(strcmp(password, inputtext, false) == 0)
            {
I may be ill informed, but shouldn't a returned 0 strcmp return 0?

If I hit enter, it allows access to the server without a password! (MAJOR EXPLOIT!)

Thanks for any assistance.
Reply


Messages In This Thread
Checking if a string is empty, shouldn't this do it? - by Dokins - 10.05.2015, 23:55
Re: Checking if a string is empty, shouldn't this do it? - by ChromeAmazing - 11.05.2015, 00:09
Re: Checking if a string is empty, shouldn't this do it? - by Abagail - 11.05.2015, 00:20
Re: Checking if a string is empty, shouldn't this do it? - by MP2 - 11.05.2015, 00:33
Re: Checking if a string is empty, shouldn't this do it? - by Dokins - 11.05.2015, 00:49

Forum Jump:


Users browsing this thread: 1 Guest(s)