How to check if the player wrote something in dialog ?
#2

pawn Код:
new age;
if(sscanf(inputtext, "d", age)) // checks if integer, or if any text is there.
if(age < min_age_here || age > max_age_here) // if they enter a number above / below.
//alternatively.
if(age >= min_age_here && age <= max_age_here)
{
    //if they enter it in between min age / max age
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)