Dialog string check
#6

Fixed it:

pawn Code:
if(dialogid == 8)
    {
        if(response)
        {
            if(strlen(inputtext))
            {
                if((strcmp(inputtext, "Male", true) == 0) || (strcmp(inputtext, "male", true) == 0))
                {
                    SendClientMessage(playerid, COLOR_GREEN, "So you are a Male.");
                    gPlayerInfo[playerid][pSex] = 1;
                }
                else if((strcmp(inputtext, "Female", true) == 0) || (strcmp(inputtext, "female", true) == 0))
                {
                    SendClientMessage(playerid, COLOR_GREEN, "So you are a Female.");
                    gPlayerInfo[playerid][pSex] = 2;
                }
                else
                {
                    SendClientMessage(playerid, COLOR_RED, "You need to choose between Male or Female!");
                    ShowPlayerDialog(playerid, 8, DIALOG_STYLE_INPUT, "Sex", "What gender are you?\n\nMale / Female", "Ok", "Cancel");
                }
            }
            else
            {
                ShowPlayerDialog(playerid, 8, DIALOG_STYLE_INPUT, "Sex", "What gender are you?\n\nMale / Female", "Ok", "Cancel");
            }
        }
        else
        {
            SendClientMessage(playerid, COLOR_RED, "You need to fill in what your gender is!");
            ShowPlayerDialog(playerid, 8, DIALOG_STYLE_INPUT, "Sex", "What gender are you?\n\nMale / Female", "Ok", "Cancel");
        }
    }
No errors.
Reply


Messages In This Thread
Dialog string check - by Hipflop - 09.07.2011, 17:10
Re: Dialog string check - by Cyanide - 09.07.2011, 17:13
Re: Dialog string check - by Hipflop - 09.07.2011, 17:16
Re: Dialog string check - by =WoR=Varth - 09.07.2011, 17:19
Re: Dialog string check - by Cyanide - 09.07.2011, 17:25
Re: Dialog string check - by Hipflop - 09.07.2011, 18:14

Forum Jump:


Users browsing this thread: 5 Guest(s)