strval question
#4

pawn Код:
case DIALOG_SET_AGE:
        {
            if(!response)
            {
                ClearChat(playerid);
                SendClientMessage(playerid, COLOR_RED, "You have been kicked");
                SendClientMessage(playerid, COLOR_WHITE, "You have chosen to not partake in the registering process. If you change your mind, you are more than welcome to come back!");
                KickPlayer(playerid);
            }
            if(response)
            {
                if(isnull(inputtext) || strval(inputtext) < 17 || strval(inputtext) > 61)
                {
                    SendClientMessage(playerid, COLOR_WHITE, "Your age must be between 18 and 60");
                    ShowPlayerDialog(playerid, DIALOG_SET_AGE, DIALOG_STYLE_INPUT, "Age", "Please enter an age between 18-60", "Proceed", "Exit");
                }
                pInfo[playerid][pAge] = strval(inputtext);
                ClearChat(playerid);
                SendClientMessage(playerid, COLOR_WHITE, "Good!  Now select your gender");
                ShowPlayerDialog(playerid, DIALOG_GENDER, DIALOG_STYLE_MSGBOX, "Gender", "Please select your gender", "Male", "Female");
            }
        }
Reply


Messages In This Thread
strval question - by BittleRyan - 03.06.2013, 23:40
Re: strval question - by Kirollos - 03.06.2013, 23:45
Re: strval question - by Pottus - 03.06.2013, 23:52
Re: strval question - by BittleRyan - 03.06.2013, 23:57
Re: strval question - by Kirollos - 04.06.2013, 00:07
Re: strval question - by BittleRyan - 04.06.2013, 00:24
Re: strval question - by Pottus - 04.06.2013, 00:54

Forum Jump:


Users browsing this thread: 2 Guest(s)