[HELP] lvl code
#2

pawn Код:
if((Level[playerid] >= 0) && (Level[playerid] < 10)) {
    //stuff from 0 to 9
}
else if((Level[playerid] >= 10) && (Level[playerid] < 45)) {
   //stuff from 10 to 44
}
else if((Level[playerid] >= 45) && (Level[playerid] < 70)) {
  //stuff from 45 to 69
}
else if(Level[playerid] > 69) {
   // from 70 and higher
}
Or you could so a switch:

pawn Код:
switch(Level[playerid])
{
    case 0 .. 9:  { Dialog }
    case 10 .. 44: { Dialog }
    case 45 .. 70: { Dialog }
}
Reply


Messages In This Thread
[HELP] lvl code - by Luca12 - 14.01.2015, 15:37
Re: [HELP] lvl code - by Schneider - 14.01.2015, 15:51
Re: [HELP] lvl code - by Threshold - 14.01.2015, 15:57
Re: [HELP] lvl code - by Luca12 - 14.01.2015, 16:03
Re: [HELP] lvl code - by Threshold - 14.01.2015, 16:59

Forum Jump:


Users browsing this thread: 1 Guest(s)