01.02.2014, 07:41
So I have made this;
and whenever I go to compile with it, the PAWNO stops working, it takes like 5 minutes for it to start responding and it's always when I add that specific thing.
Any ideas why does it happen?
Код:
stock SetRank(playerid) { switch(PlayerInfo[playerid][Score]) { case 0..499: SetPlayerScore(playerid, 1); case 500..1499: SetPlayerScore(playerid, 2); case 1500..2999: SetPlayerScore(playerid, 3); case 3000..4999: SetPlayerScore(playerid, 4); case 5000..6999: SetPlayerScore(playerid, 5); case 7000..8999: SetPlayerScore(playerid, 6); case 9000..11999: SetPlayerScore(playerid, 7); case 12000..14999: SetPlayerScore(playerid, 8); case 15000..19999: SetPlayerScore(playerid, 9); case 20000..24999: SetPlayerScore(playerid, 10); case 25000..29999: SetPlayerScore(playerid, 11); case 30000..34999: SetPlayerScore(playerid, 12); case 35000..44999: SetPlayerScore(playerid, 13); case 45000..54999: SetPlayerScore(playerid, 14); case 55000..79999: SetPlayerScore(playerid, 15); case 80000..99999: SetPlayerScore(playerid, 16); } return 1; }
Any ideas why does it happen?