Jump to content

Ajutor eroare la compilare

Recommended Posts

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



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)


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));
    return true;

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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