pawn compiler not responding
#1

I have this codes and when compile file, pawncc not responding
and if not use Switch&case not have any problem and compiled

pawn Code:
function SoodBankiCheck()
{
    SendClientMessageToAll(0x81F79FFF, "[Bank News] "white"Soode Banki Be Hesab Variz Shod. Baraye Daryaft Be Bank Moraje Konid.");
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(IsPlayerConnected(i))
    {
    if(User[i][pkart] == 1)
    {

    switch(User[i][pbank])
    {
    case 1..35000: User[i][SoodBanki] += 4003;
    case 35001..60000: User[i][SoodBanki] += 9511;
    case 60001..91000: User[i][SoodBanki] += 18032;
    case 91001..130002: User[i][SoodBanki] += 38700;
    case 130003..150000: User[i][SoodBanki] += 49322;
    case 150001..175000: User[i][SoodBanki] += 68090;
    case 175001..200000: User[i][SoodBanki] += 96007;
    case 200001..230000: User[i][SoodBanki] += 134023;
    case 230001..250000: User[i][SoodBanki] += 140000;
    case 250001..261000: User[i][SoodBanki] += 150010;
    case 261001..280006: User[i][SoodBanki] += 160000;
    case 280007..300000: User[i][SoodBanki] += 175000;
    case 300001..330000: User[i][SoodBanki] += 180000;
    case 330001..360035: User[i][SoodBanki] += 191000;
    case 360036..400000: User[i][SoodBanki] += 200000;
    case 400001..450000: User[i][SoodBanki] += 220000;
    case 450001..480000: User[i][SoodBanki] += 235600;
    case 480001..500000: User[i][SoodBanki] += 250000;
    case 500001..650000: User[i][SoodBanki] += 300000;
    case 650001..750000: User[i][SoodBanki] += 365000;
    case 750001..830050: User[i][SoodBanki] += 400000;
    case 830051..900000: User[i][SoodBanki] += 510000;
    case 900001..1000000: User[i][SoodBanki] += 540000;
    case 1000001..1200000: User[i][SoodBanki] += 580004;
    case 1200001..1800000: User[i][SoodBanki] += 750004;
    case 1800001..2300000: User[i][SoodBanki] += 950000;
    case 2300001..3000000: User[i][SoodBanki] += 1200000;
    case 3000001..4500000: User[i][SoodBanki] += 1450100;
    case 4500001..8000000: User[i][SoodBanki] += 1500000;
    case 8000001..9500003: User[i][SoodBanki] += 1500000;
    case 9500004..100000000: User[i][SoodBanki] += 3000000;
    }

    }
    }
    }
    return 1;
}
Reply
#2

what crap is this, you really calculated every interest?
Reply
#3

Ofc pawncc is no longer responding, a switch which have alot of cases(not what you see, but case 1..35000 are 34999 cases) takes way to much to compile and your code just make it crash

PHP Code:
if(<= User[i][pbank] <= 35000)
{
User[i][SoodBanki] += 4003;
}
else if(
35001 <= User[i][pbank] <= 60000)
{
User[i][SoodBanki] += 9511;

And so on. Even tho your code look a bit like an overkill
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)