2 IF's and only 1 else..
#2

Yes I tried else if, but it wont work. Whatever I enter when using "else if", it spawns me but wont load my user info. (wont send me the clientmessage in this case)


pawn Код:
if(strcmp(inputtext, parool, false) != 0)
                {
                    SendClientMessage(playerid, C_BLUE, "SERVER: Wrong password!");
                    ShowPlayerDialog(playerid, 3, DIALOG_STYLE_PASSWORD, "..:::Logging in:::..","{FF0000}Wrong password!", "Login", "Leave");
                }
                else if(!strlen(inputtext))
                {
                    SendClientMessage(playerid, C_BRED, "You entered an empty password!");
                    ShowPlayerDialog(playerid, 3, DIALOG_STYLE_PASSWORD, "..:::Logging in:::..","{FF0000}You entered an empty password!", "Login", "Leave");
                }
                else
                {
                    SendClientMessage(playerid, C_BLUE, "SERVER: You are logged in!");
                }
Reply


Messages In This Thread
2 IF's and only 1 else.. - by Dan. - 21.04.2012, 10:43
Re: 2 IF's and only 1 else.. - by Dan. - 21.04.2012, 10:55
Re: 2 IF's and only 1 else.. - by Jonny5 - 21.04.2012, 12:48
Re: 2 IF's and only 1 else.. - by Cypress - 21.04.2012, 12:52

Forum Jump:


Users browsing this thread: 1 Guest(s)