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

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.