Jump to content
  • 0

Problema sistem ore


marius11

Question

Salut sa-mp , stie cineva cum sa rezolv bugul la ore la gm bugged de pe net , am cautat , am intrebat su nu am rezolvat nimic , am cautat in gm phour si nu apare nicaieri [phour]=100 pt de la 100 incep orele , in baza de date se afla phour dar nu arata orele corect

Cine a mai intampinat problema asta ii rog sa imi spuna cum se numeste in gm sistemul phour pentru a modifica

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

Daca nu stiti sa gasiti o variabila nici cand aveti pwn-ul in fata, lasati-va de tot ce inseamna limbajul pawn, oamenilor, sunt destui scripteri, puteti si doar sa va jucati ...

 

Mergi pe server, scrie /stats, vezi cum iti arata la /stats orele jucate apoi in gamemode cauti exact acel text de la /stats cu orele jucate si vei gasi si variabila in care se stocheaza .

  • Upvote 2
Link to comment
Share on other sites

  • 0

Daca nu stiti sa gasiti o variabila nici cand aveti pwn-ul in fata, lasati-va de tot ce inseamna limbajul pawn, oamenilor, sunt destui scripteri, puteti si doar sa va jucati ...

 

Mergi pe server, scrie /stats, vezi cum iti arata la /stats orele jucate apoi in gamemode cauti exact acel text de la /stats cu orele jucate si vei gasi si variabila in care se stocheaza .

 crezi ca nu am cautat dar arata ca este 0     playerVariables[playerid][pPlayingHours] = 0;

Si am mai gasit asta dar nu cred ca este de aici

public PayDay()
{
        foreach(Player, x)
        {
            new
                BankInterest = playerVariables[x][pBankMoney] / 250,
                RandPay = (random(495) + 5) * (playerVariables[x][pPlayingHours]/60) + random(5000) + 500,
                TotalPay = BankInterest + RandPay;
                SendClientMessage(x, COLOR_TEAL, "----------------------------------------------------------------------------");
                SendClientMessage(x, COLOR_WHITE, "Your paycheck has arrived, please visit the bank to withdraw your money.");
                playerVariables[x][pBankMoney] += TotalPay;
                new taxamount = 5;

 

Edited by marius11
Link to comment
Share on other sites

  • 0

Din cate am auzit, gamemode-ul acela are totul schimbat intre ele , trebuie sa-i refaci toate variabilele . Am inteles ca orele se schimba cu punctele de insurance, de aceea ai tu 100 de ore, trebuie sa repari baza de date si problemele cu variabilele din gamemode .

Link to comment
Share on other sites

  • 0

 

	playerVariables[playerid][pTutorial] = 0;
	playerVariables[playerid][pFirstLogin] = 0;

	playerVariables[playerid][pInterior] = 0;
	playerVariables[playerid][pPlayingHours] = 0;
	playerVariables[playerid][pLevel] = 3;
	playerVariables[playerid][pMoney] += 2000000;
    playerVariables[playerid][pSkin] = 60;
	playerVariables[playerid][pVirtualWorld] = 0;
	playerVariables[playerid][pDriveLicense] = 100;
	savePlayerData(playerid);

Pune asta la : stock firstPlayerSpawn(const playerid) 

Edited by MAXYMUSS
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.