SA-MP Forums Archive
age set - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: age set (/showthread.php?tid=263616)



age set - bartje01 - 22.06.2011

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","");
    }



Re: age set - bartje01 - 22.06.2011

Any help please.


Re: age set - Babul - 22.06.2011

Код:
	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","");
	}