Trying to use multiple numbers in one value...
#5

Quote:
Originally Posted by randomkid88
Посмотреть сообщение
use a switch, something like this:
pawn Код:
switch(strval(tmp))
{
     case 280:
     {
          SendClientMessage(playerid, COLOR_YELLOW, "You're not allowed to use that skin!");
     }
}
Since you have more than one number, you can set all of them in a list, like this:
pawn Код:
case 250, 256,  270, 272, 278, 280:
Also, if the numbers are in order, you can do this:
pawn Код:
case 250..280: //will send the message for all skins between 250 and 280
Just put that under your Admin check
Where abouts would I place the switch?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)