compare empty String
#1

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?
Reply
#2

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
Reply
#3

Does no body know how to check empty strings
Reply
#4

Already solved the Problem with a little workaround
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)