04.04.2013, 11:11
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"); } } } }