Jump to content

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


KenyRPG
 Share

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[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 == 1)
            PlayerInfo[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;
}

Link to comment
Share on other sites

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...