Gender problem
#1

Hi. I have a problem with selecting gender, when i register a new account i select male but in stats it shows me female, but with female everything is ok.... Even in account files i have to change from 0 to 1 so i could be male in-game... Hope this is the right code..

Код:
    if(dialogid == DIALOG_GENDER)
    {
        if(!response)
        {
            SendClientMessage(playerid, GREY, "Please select 'Male' or 'Female' ");
            ShowPlayerDialog(playerid, DIALOG_GENDER, DIALOG_STYLE_LIST, "Are you a male or a female?","Male\nFemale","Next","Quit");
		}
        else if(response)
        {
            switch(listitem)
        	{
        	    case 0:
        	    {
			        SendClientMessage(playerid, GREY, "So, you are a male.");
        	        PlayerStat[playerid][Gender] = 1;
        	        PlayerStat[playerid][LastSkin] = 50;
        	        ShowPlayerDialog(playerid, DIALOG_AGE, DIALOG_STYLE_INPUT, "How old are you?", "Input your age below.", "Next", "Quit");
        	    }
        	    case 1:
        	    {
			        SendClientMessage(playerid, GREY, "So, you are a female.");
        	        PlayerStat[playerid][Gender] = 0;
        	        PlayerStat[playerid][LastSkin] = 191;
        	        ShowPlayerDialog(playerid, DIALOG_AGE, DIALOG_STYLE_INPUT, "How old are you?", "Input your age below.", "Next", "Quit");
        	    }
        	}
        }
    }
Reply


Messages In This Thread
Gender problem - by DerViL - 04.04.2013, 11:11
Re : Gender problem - by DaTa[X] - 04.04.2013, 12:01
Re: Gender problem - by DerViL - 04.04.2013, 12:11
Re: Gender problem - by DerViL - 04.04.2013, 13:06
Re: Gender problem - by BigGroter - 04.04.2013, 13:41
Re: Gender problem - by DerViL - 04.04.2013, 14:02
Re: Gender problem - by RajatPawar - 04.04.2013, 14:04
Re: Gender problem - by SuperViper - 04.04.2013, 14:13
Re: Gender problem - by DerViL - 04.04.2013, 14:19

Forum Jump:


Users browsing this thread: 1 Guest(s)