Jump to content
  • 0

Problema /buy1


Divil.Scorpiono

Question

codu:

CMD:buy1(playerd, params[], help) {
    SCM(playerid, COLOR_DARKNICERED, "Ti-ai achizitionat Reborn");
    PlayerInfo[playerid][pPremiumPoints] -= 200;
    PlayerInfo[playerid][pLevel] = 3;
    PlayerInfo[playerid][pFreshPoints] = 100;
    PlayerInfo[playerid][pMoney] = 50000000;
    return 1;
}

eroarea:

C:\Users\dariu\OneDrive\Desktop\fresh gm\gamemodes\gm.pwn(773) : error 017: undefined symbol "playerid"
C:\Users\dariu\OneDrive\Desktop\fresh gm\gamemodes\gm.pwn(774) : error 017: undefined symbol "playerid"
C:\Users\dariu\OneDrive\Desktop\fresh gm\gamemodes\gm.pwn(775) : error 017: undefined symbol "playerid"
C:\Users\dariu\OneDrive\Desktop\fresh gm\gamemodes\gm.pwn(776) : error 017: undefined symbol "playerid"
C:\Users\dariu\OneDrive\Desktop\fresh gm\gamemodes\gm.pwn(777) : error 017: undefined symbol "playerid"

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 2
11 hours ago, Divil.Scorpiono said:

mane comanda asta e de acuma o luna fix acuma te ai trezit sa raspuzi ? =))))))

Avand in vedere ca topic-ul nu s-a inchis, pot sa raspund si dupa o luna. In loc sa te multumesti ca te ajut, razi, mai fa topicuri ca sigur te mai ajuta lumea.

Link to comment
Share on other sites

  • 0

CMD:buy1(playerid, params[], help) {
    SCM(playerid, COLOR_DARKNICERED, "Ti-ai achizitionat Reborn");
    PlayerInfo[playerid][pPremiumPoints] -= 200;
    PlayerInfo[playerid][pLevel] = 3;
    PlayerInfo[playerid][pFreshPoints] = 100;
    PlayerInfo[playerid][pMoney] = 50000000;
    return 1;
}

Link to comment
Share on other sites

  • 0

Presupun ca comanda ar trebui sa fie YCMD.

Ti am pus si o mica verificare + update la array sa salveze pp,level etc altfel nu se salva. Daca faci update-ul diferit adapteaza cu alea din gm-ul tau.

 

YCMD:buy1(playerid, params[], help) {
    if(PlayerInfo[playerid][pPremiumPoints] <= 199) return SCM(playerid, COLOR_DARKNICERED, "Nu detii suma de 200 Premium Points.");
    
    SCM(playerid, COLOR_DARKNICERED, "Ti-ai achizitionat Reborn");
    
    PlayerInfo[playerid][pPremiumPoints] -= 200;
    PlayerInfo[playerid][pLevel] += 3;
    PlayerInfo[playerid][pFreshPoints] += 100;
    PlayerInfo[playerid][pMoney] += 50000000;

    Update(playerid, pPremiumPointsx);
    Update(playerid, pLevelx);
    Update(playerid, pFreshPointsx);
    Update(playerid, pMoneyx);

    return 1;
}

 

Edited by Gheboasa
Link to comment
Share on other sites

  • 0
On 2/3/2024 at 7:41 AM, Gheboasa said:

Presupun ca comanda ar trebui sa fie YCMD.

Ti am pus si o mica verificare + update la array sa salveze pp,level etc altfel nu se salva. Daca faci update-ul diferit adapteaza cu alea din gm-ul tau.

 

YCMD:buy1(playerid, params[], help) {
    if(PlayerInfo[playerid][pPremiumPoints] <= 199) return SCM(playerid, COLOR_DARKNICERED, "Nu detii suma de 200 Premium Points.");
    
    SCM(playerid, COLOR_DARKNICERED, "Ti-ai achizitionat Reborn");
    
    PlayerInfo[playerid][pPremiumPoints] -= 200;
    PlayerInfo[playerid][pLevel] += 3;
    PlayerInfo[playerid][pFreshPoints] += 100;
    PlayerInfo[playerid][pMoney] += 50000000;

    Update(playerid, pPremiumPointsx);
    Update(playerid, pLevelx);
    Update(playerid, pFreshPointsx);
    Update(playerid, pMoneyx);

    return 1;
}

 

mane comanda asta e de acuma o luna fix acuma te ai trezit sa raspuzi ? =))))))

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.