Jump to content
  • 0

Ajutor La Definire


Negrici Rares

Question

5 answers to this question

Recommended Posts

  • 0

e functuie giveExp? Daca e functie fa asa

forward giveExp(playerid);
public giveExp(playerid)
{
    //cod
    return true;
}
Si daca folosesti giveExp ca o valoare exemplu "1,2,3,4..etc" fa asa la inceputul gamemode-ului
#define giveExp (VALOARE)

Link to comment
Share on other sites

  • 0

uite frate, si ma sparge ca nuj ce valoare sa pun

case 61..75: {
            something = 20 + random(50); gString[0] = (EOS);
            giveExp(playerid, something);
            UpdateVar(playerid, "Respect", PlayerInfo[playerid][pExp]);
            SCMf(playerid, COLOR_SVORANGE, "Spin: {FFFFFF}Ai castigat suma de %d experienta, felicitari.", something);
            format(gString, sizeof gString, "Spin: {FFFFFF}Ai castigat suma de %d experienta. Felicitari !", something);
            ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Experienta:", gString, "Ok", "");
        }

Link to comment
Share on other sites

  • 0
27 minutes ago, Negrici Rares said:

uite frate, si ma sparge ca nuj ce valoare sa pun

case 61..75: {
            something = 20 + random(50); gString[0] = (EOS);
            giveExp(playerid, something);
            UpdateVar(playerid, "Respect", PlayerInfo[playerid][pExp]);
            SCMf(playerid, COLOR_SVORANGE, "Spin: {FFFFFF}Ai castigat suma de %d experienta, felicitari.", something);
            format(gString, sizeof gString, "Spin: {FFFFFF}Ai castigat suma de %d experienta. Felicitari !", something);
            ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Experienta:", gString, "Ok", "");
        }

Nu ai giveExp in gamemode, iti recomand sa inlocuiesti cu:

PlayerInfo[playerid][pExp] += something;

 

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