Jump to content

Question

Posted

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

5 answers to this question

Recommended Posts

  • 0
Posted

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
  • 0
Posted (edited)

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

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 .

  • 0
Posted (edited)

 

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

Are variabilele bubuite si baza de date. Eu am facut un alt sistem de contorizare a orelor. Incearca si tu.

j3V8Znq.png

5IGyOAw.png

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.