Saving Age [MySQL]
#3

isnumeric is not needed here

pawn Код:
if(dialogid == 150)
{
    if(!response) Kick(playerid);
    else if(!(14 < strval(inputtext) < 76))
    {
        ShowPlayerDialog(playerid, 150, DIALOG_STYLE_INPUT, "Age","Enter your age below","Ok","Cancel");
        SendClientMessage(playerid, -1, "SERVER:Please enter a correct age!");
        SendClientMessage(playerid, -1, "SERVER:It has to be between 15 and 75!");
    }else
        Player[playerid][Age] = strval(inputtext);

    return 1;
}
Reply


Messages In This Thread
Saving Age [MySQL] - by Keyhead - 31.10.2013, 16:53
Re: Saving Age [MySQL] - by Konstantinos - 31.10.2013, 17:07
Re: Saving Age [MySQL] - by Jefff - 31.10.2013, 17:10
Re: Saving Age [MySQL] - by Pottus - 31.10.2013, 17:10
Re: Saving Age [MySQL] - by Keyhead - 31.10.2013, 17:12

Forum Jump:


Users browsing this thread: 1 Guest(s)