19.01.2013, 19:20
I want to make it where when the player types in their age below, it would get what they put so I can save it into their pAge stats. Help appreciated!
PHP код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 7)
{
switch(listitem)
{
case 0:
{
ShowPlayerDialog(playerid,8,DIALOG_STYLE_INPUT,"Registration","Type your age below","Continue","");
if (!response) return Kick(playerid);
PlayerInfo[playerid][pSex]=1;
}
case 1:
{
ShowPlayerDialog(playerid,8,DIALOG_STYLE_INPUT,"Registration","Type your age below","Continue","");
if (!response) return Kick(playerid);
PlayerInfo[playerid][pSex]=2;
}
}
}
}
PHP код:
if(dialogid == 8)
{
PlayerInfo[playerid][pAge]=
}