Bigger than 16, smaller than 99?
#1

Hey so I got this dialog, and I'd like to get a code:

pawn Код:
if(... this is the thing I need. );
{
    //my stuff
}
else
{
   SendClientMessage(... );
}
Any help?
Reply
#2

If it's a list:

pawn Код:
if(dialogid == dialogid)
{
    if(response)
    {
        if(listitem == 0)
        {
            //your stuff
        }
        if(listitem == 1)
        {
           //Your stuff
        }
        return 1;
    }
}
Reply
#3

Of what I can understand you need to check if the value is bigger than 16 & smaller than 99.
pawn Код:
if(bla > 16 && bla < 99)
You can replace "bla" with whatever it is you are trying to check.
Reply
#4

Mikkel answered it, thanks!
Reply
#5

you can do this too:

pawn Код:
(bla > 16 && bla < 99) ? return true : return false;
Reply
#6

******, you need to become an online mathematics teacher
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)