Jump to content
  • 0

Comanda in gm 2k19


Bugs

Question

      Am incercat sa fac comanda asta pe gm ul 2k19 cred ca e bigzone edit, idk si primesc niste errori , ma poate ajuta cineva?

Ps : daca se poate vreau sa stiu de ce am primit acele errori vreau sa incerc sa repar eu singur [pe google nu am gasit nimic folositor]

!~ Am incercat sa schimb money cu pCashx sau Pbank dar tot primesc errorile astea ~!

 

Comanda

  new Year, Month, Day;
    getdate(Year, Month, Day);
    if (PlayerInfo[playerid][pDailyLogin] != Day) {
        new 
        szString[128];
        pRP = 1,
        money = PlayerInfo([playerid] [pLevel] * 10000 + random(40000);
        format(szString, sizeof(szString), "UPDATE `users` SET `DailyLogin`='%d' WHERE `ID`='%d'", day, PlayerInfo[playerid] [pSQLID]);
        mysql_tquery(SQL, szString, "", "");

        SendClientMessage(playerid, 0xFF8A00, "Felicitari")
        format(szString, sizeof(szString),"acest bonus consta in %d rp(uri) si $%s.", rp, FormatNumber(money));
        SendClientMessage(playerid, 0xFF8A00, szString);
        GivePlayerMoney(playerid, money);
        PlayerInfo(playerid)[pExp] += rp;
        Update(playerid,pRP);
    }

Errori

GM.pwn(15390) : warning 217: loose indentation
GM.pwn(15391) : warning 217: loose indentation
GM.pwn(15395) : error 022: must be lvalue (non-constant)
GM.pwn(15395) : warning 215: expression has no effect
GM.pwn(15395 -- 15396) : error 017: undefined symbol "money"
GM.pwn(15396) : error 012: invalid function call, not a valid address
GM.pwn(15396) : fatal error 107: too many error messages on one line

Compilation aborted.

Pawn compiler 3.10.8	 	 	Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
[Finished in 0.6s with exit code 1]
Citat

 

 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0
Acum 13 ore, Bugs a spus:

      Am incercat sa fac comanda asta pe gm ul 2k19 cred ca e bigzone edit, idk si primesc niste errori , ma poate ajuta cineva?

Ps : daca se poate vreau sa stiu de ce am primit acele errori vreau sa incerc sa repar eu singur [pe google nu am gasit nimic folositor]

!~ Am incercat sa schimb money cu pCashx sau Pbank dar tot primesc errorile astea ~!

 

Comanda


  new Year, Month, Day;
    getdate(Year, Month, Day);
    if (PlayerInfo[playerid][pDailyLogin] != Day) {
        new 
        szString[128];
        pRP = 1,
        money = PlayerInfo([playerid] [pLevel] * 10000 + random(40000);
        format(szString, sizeof(szString), "UPDATE `users` SET `DailyLogin`='%d' WHERE `ID`='%d'", day, PlayerInfo[playerid] [pSQLID]);
        mysql_tquery(SQL, szString, "", "");

        SendClientMessage(playerid, 0xFF8A00, "Felicitari")
        format(szString, sizeof(szString),"acest bonus consta in %d rp(uri) si $%s.", rp, FormatNumber(money));
        SendClientMessage(playerid, 0xFF8A00, szString);
        GivePlayerMoney(playerid, money);
        PlayerInfo(playerid)[pExp] += rp;
        Update(playerid,pRP);
    }

Errori


GM.pwn(15390) : warning 217: loose indentation
GM.pwn(15391) : warning 217: loose indentation
GM.pwn(15395) : error 022: must be lvalue (non-constant)
GM.pwn(15395) : warning 215: expression has no effect
GM.pwn(15395 -- 15396) : error 017: undefined symbol "money"
GM.pwn(15396) : error 012: invalid function call, not a valid address
GM.pwn(15396) : fatal error 107: too many error messages on one line

Compilation aborted.

Pawn compiler 3.10.8	 	 	Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
[Finished in 0.6s with exit code 1]

 

  new Year, Month, Day;
    getdate(Year, Month, Day);
    if (PlayerInfo[playerid][pDailyLogin] != Day) 
    {
        new 
        szString[256],
        pRP = 1,
        money = PlayerInfo([playerid] [pLevel] * 10000 + random(40000));
        format(szString, sizeof(szString), "UPDATE `users` SET `DailyLogin`='%d' WHERE `ID`='%d'", day, PlayerInfo[playerid][pSQLID]);
        mysql_tquery(SQL, szString, "", "");

        SendClientMessage(playerid, 0xFF8A00, "Felicitari");
        format(szString, sizeof(szString),"acest bonus consta in %d rp(uri) si $%s.", rp, FormatNumber(money));
        SendClientMessage(playerid, 0xFF8A00, szString);
        GivePlayerMoney(playerid, money);
        PlayerInfo(playerid)[pExp] += rp;
        Update(playerid,pRP);

       return 1;
    }

1. acolo unde este variabilea new sztring[128] aveai ; si trebuia ,

2.la money = ....... trebuia o paranteza 

3. la SendClientMessage ai omis ;

4.La format ai uitat de o paranteza

5.ai uitat sa pui sub update(playerid,rp); return 1;

daca mai intampini probleme adaugama pe discord Valy#4110

Edited by _Valy_
completare
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.

Guest
Answer this question...

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