06.05.2014, 13:56
I used switch because it's faster than using if/else if statements. You also don't need to call RPJS so many times.
I forgot to remove the close parenthesis though:
I forgot to remove the close parenthesis though:
pawn Код:
new
amount = RPJS(playerid, strval(params);
switch (amount)
{
case 0 .. 49: left = 50 - amount;
case 50 .. 99: left = 100 - amount;
case 100 ... 149: left = 150 - amount;
case 150 .. 199: left = 200 - amount;
case 200: left = 0;
}