age set
#1

Hey guys. I try to make my age setted with dialogs
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","");
    }
Reply
#2

Any help please.
Reply
#3

Код:
	if(dialogid == 5)
	{
		PlayerInfo[playerid][pAge] = strval(inputtext);
		if(PlayerInfo[playerid][pAge] <18) ShowPlayerDialog(playerid,5,DIALOG_STYLE_INPUT,"Age","Age must be above 18","Continue","");
	}
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)