Posts: 194
Threads: 2
Joined: Mar 2012
Reputation:
0
ShowPlayerDialog(playerid,DIALOG_SEX,DIALOG_STYLE_ MSGBOX,"Gender Selection","You are a male or a female?","Male","Female");
if(response) male
else female
Posts: 1,849
Threads: 96
Joined: Apr 2010
Reputation:
0
First of all you will need be a create a variable in the Player Enumeration so that you can store 1 or 0 there as Female and Male!
I can do it completely for you on teamviewer if you want. Let me know!
Posts: 230
Threads: 36
Joined: Dec 2010
Reputation:
0
I already know it it works for int like money etc if itll store 0 or 1 when a player will/stats itll show 1 or 0 and not male or female
Posts: 1,849
Threads: 96
Joined: Apr 2010
Reputation:
0
ShowPlayerDialog List one to the player. First option should be male and second should be female. When they select male. Under OnDialogResponse increment the PlayerInfo[playerid][pGender] = 0; and PlayerInfo[playerid][pGender] = 1; when they select a female. Under OnPlayerDisconnect you might be saving stats of the player. There add this new Pvar and its current value.
On Stats
You will need to create an array which will change string when its 0 or 1 and use it show player gender under ShowStats!
Posts: 230
Threads: 36
Joined: Dec 2010
Reputation:
0
Could you please do it here for me im not sure to understand and i cant teamviewer im not at home presently