Jump to content

Question

Posted

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"

5 answers to this question

Recommended Posts

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

  • 0
Posted

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;
}

  • 0
Posted (edited)

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
  • 0
Posted
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 ? =))))))

  • 0
Posted
16 hours ago, Gheboasa said:

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.

ho mane ce te ai aprins asa

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.