Jump to content

error 001: expected token: ";", but found "["


Keny

Recommended Posts

C:\Users\ABC\OneDrive\Desktop\burned.ro\gamemodes\wa-rpg.pwn(24765) : warning 215: expression has no effect
C:\Users\ABC\OneDrive\Desktop\burned.ro\gamemodes\wa-rpg.pwn(24765) : error 001: expected token: ";", but found "["
C:\Users\ABC\OneDrive\Desktop\burned.ro\gamemodes\wa-rpg.pwn(24765) : warning 217: loose indentation
C:\Users\ABC\OneDrive\Desktop\burned.ro\gamemodes\wa-rpg.pwn(24765) : error 029: invalid expression, assumed zero
C:\Users\ABC\OneDrive\Desktop\burned.ro\gamemodes\wa-rpg.pwn(24765) : warning 215: expression has no effect
C:\Users\ABC\OneDrive\Desktop\burned.ro\gamemodes\wa-rpg.pwn(24765) : error 001: expected token: ";", but found "]"
C:\Users\ABC\OneDrive\Desktop\burned.ro\gamemodes\wa-rpg.pwn(24765) : fatal error 107: too many error messages on one line

 

LINIA 24765 PlayerInfo[i][pCrates][type-1] += crate;

 

 

}
CMD:givecrateall(playerid, params[]) {
    new type, crate, szMessage[180];
    if(PlayerInfo[playerid][pAdmin] < 7) return SCM(playerid, COLOR_GREY, "Nu esti autorizat sa folosesti aceasta comanda!");
    if(sscanf(params, "ii", type, crate)) {
        SCM(playerid, COLOR_GREY, "Syntax: {FFFFFF}/givecrateall <type> <amount>");
        SCM(playerid, COLOR_GREY, "Common Crate(1) | Rare Crate (2)  | Mystic Crate (3) | Trans Crate (4)");
        return true;
    }
    if(type < 1 && type > 4) return SCM(playerid, COLOR_GREY, "Invalid.");
    foreach(Player, i) {
        if(IsPlayerConnected(i) && IsPlayerLogged[i] == 1)
            PlayerInfo[i][pCrates][type-1] += crate;
            if(type == 1) format(szMessage, sizeof(szMessage), "* Administratorul {F03636}%s{FFFFFF} ti-a dat %d Common Crate ca bonus!", GetName(playerid), crate);
            if(type == 2) format(szMessage, sizeof(szMessage), "* Administratorul {F03636}%s{FFFFFF} ti-a dat %d Rare Crate ca bonus!", GetName(playerid), crate);
            if(type == 3) format(szMessage, sizeof(szMessage), "* Administratorul {F03636}%s{FFFFFF} ti-a dat %d Mystic Crate ca bonus!", GetName(playerid), crate);
            if(type == 4) format(szMessage, sizeof(szMessage), "* Administratorul {F03636}%s{FFFFFF} ti-a dat %d Transcendent Crate ca bonus!", GetName(playerid), crate);
            SCM(i,COLOR_WHITE,szMessage);
            save_vouchers(i);
        }
    }
    return 1;
}

Edited by Keny
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.