09.04.2012, 14:16
dialog register ummm
like Choose ur sex
1. male
2. female
i just try this
but it's not work at all
it show me a dialog but when i choose my sex its no respond
it must be to F6 to type "male"
like Choose ur sex
1. male
2. female
i just try this
Quote:
ShowPlayerDialog(playerid,1,2,"wat ur sex", "1.male\n2.female","done","cancle"); |
Quote:
} if(dialogid == 1) { if(!response) { return 1; } switch (listitem) { case 0: { PlayerInfo[playerid][pSex] = 1; SendClientMessage(playerid, COLOR_YELLOW2, "Ok, u r male"); SendClientMessage(playerid, COLOR_LIGHTRED, "wat is ur birthday? (ตอบ: วว/ดด/ปปปป)"); ShowPlayerDialog(playerid, 2, 1,"ur BD","dd/ mm / yyyy","done","cancle"); RegistrationStep[playerid] = 2; } case 1: { PlayerInfo[playerid][pSex] = 2; SendClientMessage(playerid, COLOR_YELLOW2, "Ok, u r female"); SendClientMessage(playerid, COLOR_LIGHTRED, "wat ur birthday? (ตอบ: วว/ดด/ปปปป)"); ShowPlayerDialog(playerid, 2, 1,"wat ur birthday","dd / mm / yyyy","done","cancle"); RegistrationStep[playerid] = 2; } } } return 1; } |
it show me a dialog but when i choose my sex its no respond
it must be to F6 to type "male"