22.06.2011, 19:03
Hey guys. I try to make my age setted with dialogs
IT has no effect. What's wrong?
IT has no effect. What's wrong?
pawn Код:
if(dialogid == 4)
{
if(!response)
{
ShowPlayerDialog(playerid,5,DIALOG_STYLE_INPUT,"Age","Alright alright.\nHow old are you ma'm?","Continue","");
PlayerInfo[playerid][pGender] = 2;
}
else
{
ShowPlayerDialog(playerid,5,DIALOG_STYLE_INPUT,"Age","Alright alright.\nHow old are you man?","Continue","");
PlayerInfo[playerid][pGender] = 1;
}
}
if(dialogid == 5)
{
PlayerInfo[playerid][pAge] = inputtext[34];
if(PlayerInfo[playerid][pAge] <18) ShowPlayerDialog(playerid,5,DIALOG_STYLE_INPUT,"Age","Age must be above 18","Continue","");
}