Jump to content
Autentificarea cu Google și Facebook nu mai este disponibilă. ×

Recommended Posts

Posted

Salut, am decis sa introduc BigInt pe gamemode-ul burned si intampin aceste 4 erori si nu le dau de cap.

 

Erori:

C:\Users\pc\Desktop\burned.ro\gamemodes\wa-rpg.pwn(22480) : error 035: argument type mismatch (argument 1)
C:\Users\pc\Desktop\burned.ro\gamemodes\wa-rpg.pwn(22482) : error 035: argument type mismatch (argument 1)
C:\Users\pc\Desktop\burned.ro\gamemodes\wa-rpg.pwn(22485) : error 035: argument type mismatch (argument 1)
C:\Users\pc\Desktop\burned.ro\gamemodes\wa-rpg.pwn(22498) : error 035: argument type mismatch (argument 1)

Script:

CMD:givemoney(playerid, params[], help) {
    if(PlayerInfo[playerid][pAdmin] < 5) return SCM(playerid, COLOR_WHITE, AdminOnly);
    new money[25],id;
    if(sscanf(params, "us[25]",id,money)) return SCM(playerid,COLOR_GREY, "Syntax: {FFFFFF}/givemoney <playerid/name> <Suma>");
    if(!IsPlayerConnected(id) || id == INVALID_PLAYER_ID) return SCM(playerid, COLOR_GREY, "Acel player nu este conectat.");

    if(CheckerBigInt(money) != 0) return true;
    Translate32Bit(StoreMoney[id], MoneyMoney[id], money);

    gString[0] = EOS;
    format(gString, sizeof(gString), "(/givemoney) {FFFFFF}%s give %s, $%s money", GetName(playerid), GetName(id), FormatNumberss(money));
    SendAdminMessage(COLOR_WARNING, gString, 5);
    format(gString, sizeof(gString), "Admin-ul %s ti-a dat $%s", GetName(playerid), FormatNumberss(money));
    SCM(id, COLOR_WHITE, gString);
    Update(id, pCashx);
    format(gString, sizeof(gString), "%s a primit $%s de la %s", GetName(id), FormatNumberss(money), GetName(playerid));
    InsertLog(id, gString, LOG_MONEY);
    return true;
}
CMD:moneyforall(playerid, params[], help) {
    new money[20], szMessage[180];
    if(PlayerInfo[playerid][pAdmin] < 6) return SCM(playerid, COLOR_GREY, "Nu esti autorizat sa folosesti aceasta comanda!");
    if(sscanf(params, "s[20]", money)) return SCM(playerid, COLOR_GREY, "Syntax: {FFFFFF}/moneyforall <money>");
    if(CheckerBigInt(money) != 0) return true;

    foreach(Player, i) {
        if(IsPlayerConnected(i) && IsPlayerLogged[i] == 1) {
            Translate32Bit(StoreMoney[i], MoneyMoney[i], money);
            format(szMessage, sizeof(szMessage), "* Administratorul {F03636}%s{FFFFFF} ti-a dat $%s ca bonus!", GetName(playerid), FormatNumberss(money));
            SCM(i,COLOR_WHITE,szMessage);
        }
    }
    return true;
}

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
×
×
  • 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.