SA-MP Forums

Go Back   SA-MP Forums > SA-MP Server > Server Support

Reply
 
Thread Tools Display Modes
Old 14/03/2012, 11:05 AM   #1
reini90
Little Clucker
 
Join Date: Mar 2012
Posts: 14
Reputation: 0
Unhappy compare empty String

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?
reini90 is offline   Reply With Quote
Old 14/03/2012, 11:12 AM   #2
reini90
Little Clucker
 
Join Date: Mar 2012
Posts: 14
Reputation: 0
Default AW: compare empty String

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
reini90 is offline   Reply With Quote
Old 14/03/2012, 01:31 PM   #3
reini90
Little Clucker
 
Join Date: Mar 2012
Posts: 14
Reputation: 0
Default AW: compare empty String

Does no body know how to check empty strings
reini90 is offline   Reply With Quote
Old 14/03/2012, 02:15 PM   #4
reini90
Little Clucker
 
Join Date: Mar 2012
Posts: 14
Reputation: 0
Default AW: compare empty String

Already solved the Problem with a little workaround
reini90 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
+REP how to empty and check for an empty string var PawnoQ Scripting Help 5 08/02/2012 05:01 PM
compare string ombre Scripting Help 8 19/11/2011 12:56 PM
ZCMD if string is empty help! brett7 Scripting Help 5 10/09/2011 01:26 AM
<<>> Compare STRING Ricop522 Help Archive 0 24/06/2011 01:09 AM
How to empty this string? Anteino Help Archive 22 28/04/2011 01:27 PM


All times are GMT. The time now is 01:43 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.