compare empty String - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Server (
https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (
https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: compare empty String (
/showthread.php?tid=325664)
compare empty String -
reini90 - 14.03.2012
Hello
I'm creating a login script.
I have a problem because I want to check if the passwort is not empty
therefore i have following snippet
Code:
else if(!strcmp("",inputtext,false)){
loginCompare(playerid);
}
but empty strings are still allowed.
is there any trick how i can solve that problem?
AW: compare empty String -
reini90 - 14.03.2012
haha i think i've found that tricky mistake
i replaced else if and else with if now it works fine
EDIT:
oh no i was wrong it does still not work
AW: compare empty String -
reini90 - 14.03.2012
Does no body know how to check empty strings
AW: compare empty String -
reini90 - 14.03.2012
Already solved the Problem with a little workaround