Doesn't work
#1

Aged:

When i input any numbers it doesn't work.
Some what the number 1 (maybe?) is working. But it is display as 49.

Clothe:

When i input any valid skin id's it doesn't work.
It only work in skin id 299.

Code

pawn Код:
if(strval(inputtext) <= 10 || strval(inputtext) >= 99)
{
    pInfo[playerid][Age] = strval(inputtext);
    CleanChat(playerid);
    format(buf, 129, "So, You are %i years old", inputtext);
    SendClientMessage(playerid, COLOR_PURPLE, buf);
    ShowPlayerDialog(playerid, Clothe, DIALOG_STYLE_INPUT, "Choose your Clothe", "Clothe Valid 0 up to 299", "Change", "Remain");
}
else
{
    ShowPlayerDialog(playerid, Aged, DIALOG_STYLE_INPUT, "What is your Age?", "Age allowed is 10 up to 99\n"red"Error: That age is not allowed in the server! (#ErrorID: 4000)", "Input", "Cancel");
}
return 1;

if(strval(inputtext) <= 0 || strval(inputtext) >= 299)
{
    pInfo[playerid][Clothes] = strval(inputtext);
    SetPlayerSkin(playerid, strval(inputtext));
    CleanChat(playerid);
    SendClientMessage(playerid, COLOR_YELLOW, "You can start your own life now!");
}
else
{
    ShowPlayerDialog(playerid, Clothe, DIALOG_STYLE_INPUT, "Choose your Clothe", "Clothe Valid 0 up to 299\n"red"Error: That clothe is not valid in the server! (#ErrorID: 4000)", "Change", "Remain");
}
Reply
#2

Change this line

pawn Код:
if(strval(inputtext) <= 10 || strval(inputtext) >= 99)
To

pawn Код:
if(strval(inputtext) >= 10 || strval(inputtext) <= 99)


For second dialog!!


Change this line

pawn Код:
if(strval(inputtext) <= 0 || strval(inputtext) >= 299)
To

pawn Код:
if(strval(inputtext) >= 0 || strval(inputtext) <= 299)
Reply
#3

Didn't work..

Now i can insert the 9 years old below..
Reply
#4

Change this:

pawn Код:
if(strval(inputtext) >= 0 || strval(inputtext) <= 299)
with this:

pawn Код:
if(strval(inputtext) >= 0 && strval(inputtext) <= 299)
Same with the other dialog!
Reply
#5

Thanks work!!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)