error 001: expected token: ";", but found ")"
#6

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:
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;
}
Reply


Messages In This Thread
error 001: expected token: ";", but found ")" - by SandKing94 - 06.05.2014, 13:38
Re: error 001: expected token: ";", but found ")" - by Ghazal - 06.05.2014, 13:43
Re: error 001: expected token: ";", but found ")" - by PrivatioBoni - 06.05.2014, 13:44
Re: error 001: expected token: ";", but found ")" - by Konstantinos - 06.05.2014, 13:46
Re: error 001: expected token: ";", but found ")" - by SandKing94 - 06.05.2014, 13:47
Re: error 001: expected token: ";", but found ")" - by Konstantinos - 06.05.2014, 13:56

Forum Jump:


Users browsing this thread: 3 Guest(s)