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

Strcmp returns 0 when the input MATCHES. You should use:

pawn Код:
if(!strlen(password) || isnull(password))
You should have isnull if you have ZCMD.
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: 6 Guest(s)