Jump to content
Autentificarea cu Google și Facebook nu mai este disponibilă. ×

Question

5 answers to this question

Recommended Posts

  • 0
Posted

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)

  • 0
Posted

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", "");
        }

  • 0
Posted
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

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.