Jump to content
  • 0

Bug gm bhood editat de HPQ123


TheGodfather

Question

Salut, am gasit un bug la acest gamemode si nu stiu cum sa il rezolv. La unele masini, nu functioneaza sistemul de stage, chiar daca este upgradat la maxim/orice nivel de stage. De exemplu, daca am stage 3 pe un sultan, acesta tot cu 169 km o sa mearga, chiar daca ar trebui sa prinda 200+

Link to comment
Share on other sites

12 answers to this question

Recommended Posts

  • 0
Acum 17 minute, LucaPawnL a spus:

trebuie defenit, ID-ul masinii + boost-ul de cati km sa mearga in plus

La majoritatea masinilor merge corect stage-ul, doar unele nu. Plus ca daca jucatorul vinde masina, si ii dau una cu /givevehicle, sistemul o sa functioneze corect

Link to comment
Share on other sites

  • 0
Acum 11 minute, TheGodfather a spus:

La majoritatea masinilor merge corect stage-ul, doar unele nu. Plus ca daca jucatorul vinde masina, si ii dau una cu /givevehicle, sistemul o sa functioneze corect

Atunci vezi ce difera la comanda /givevehicle cu sistemul de unde cumperi stage pentru masina.

Ce inseamna cuvantul "Unic" este atunci cand Chestia / Obiectul / Idea / etc... nu exista in alta parte.

Copii, nu mai veniti cu vorbe de "Am gamemode unic", nu exista asa ceva, la ora actuala totul este pe net.

Aveti grija pe cine ajutati, majoritatea sunt caini.

Link to comment
Share on other sites

  • 0

case DIALOG_UPSTAGE: {
            if(!response) return true;
            new idd = PersonalCar(playerid);
            if(CarInfo[idd][cStage] >= 3) return SCM(playerid, -1, "Acest vehicul este upgradat la stage maximum!");
            if(PlayerInfo[playerid][pPremiumPoints] < StagePrice[0][CarInfo[idd][cStage]+1]) return SCM(playerid, -1, "Nu ai destule Premium Points.");
            if(IsABike(CarInfo[idd][Spawned])) return SCM(playerid, COLOR_LGREEN, "Eroare: Nu poti upgrada acest vehicul!");
            PlayerInfo[playerid][pPremiumPoints] -= StagePrice[0][CarInfo[idd][cStage]+1];
            Iter_Add(IsSpeed, playerid);
            Update(playerid, pPremiumPointsx);
            SCMEx(playerid, COLOR_WHITE, "{227FC3}Tunning System: {FFFFFF}You upgrade your vehicle successfully to stage %d for %d premium points.", CarInfo[idd][cStage]+1, StagePrice[0][CarInfo[idd][cStage]+1]);
            mysql_format(SQL, string, sizeof(string), "UPDATE `cars` SET `Stage`='%d' WHERE `ID`='%d'", CarInfo[idd][cStage]+1, CarInfo[idd][cID]);
            mysql_tquery(SQL, string, "", "");
            CarInfo[idd][cStage] ++;
               format(string, sizeof(string), "Your vehicle is~y~ %s~n~~w~~h~Max. speed:~y~ %d km/h~n~~w~~h~Current stage:~y~ %d/3~w~~h~~n~boost: ~y~+%d km/h~w~~h~ / ~b~ %d km/h"
            ,aVehicleNames[GetVehicleModel(GetPlayerVehicleID(playerid))-400], CarInfo[idd][cMaxSpeed], CarInfo[idd][cStage],StageSpeed[0][CarInfo[idd][cStage]], CarInfo[idd][cMaxSpeed]+StageSpeed[0][CarInfo[idd][cStage]]);
            PlayerTextDrawSetString(playerid, StagePTD, string);
        }

 

YCMD:givevehicle(playerid, params[], help) {
    if(PlayerInfo[playerid][pAdmin] < 7) return SendClientMessage(playerid, COLOR_WHITE, AdminOnly);
    new id, model, string[180],temporar;
    if(sscanf(params, "uii", id, model, temporar)) return SendClientMessage(playerid, COLOR_GREY, "USAGE: {FFFFFF}/givevehicle <playerid/name> <model> <temporar>");
    if(!IsPlayerConnected(id) || id == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_GREY, "Acel player nu este conectat.");
    else if(GetSlots(id) <= Iter_Count(MyVehicle[id])) return SCM(playerid, -1, "Acel player are numarul maxim de masini personale! Isi poate cumpara un slot din /shop.");
    
    format(string, sizeof(string), "* Ai primit un %s de la administratorul %s.", aVehicleNames[model-400], GetName(playerid));
    SCM(id, COLOR_YELLOW, string);
    format(string, sizeof(string), "* I-ai dat lui %s un %s.", GetName(id), aVehicleNames[model-400]);
    SCM(playerid, COLOR_YELLOW, string);                
    GiveVehicle(id, model, 0, 0, 0, 0, temporar);    
    return true;

Link to comment
Share on other sites

  • 0
Acum 1 minut, TheGodfather a spus:

case DIALOG_UPSTAGE: {
            if(!response) return true;
            new idd = PersonalCar(playerid);
            if(CarInfo[idd][cStage] >= 3) return SCM(playerid, -1, "Acest vehicul este upgradat la stage maximum!");
            if(PlayerInfo[playerid][pPremiumPoints] < StagePrice[0][CarInfo[idd][cStage]+1]) return SCM(playerid, -1, "Nu ai destule Premium Points.");
            if(IsABike(CarInfo[idd][Spawned])) return SCM(playerid, COLOR_LGREEN, "Eroare: Nu poti upgrada acest vehicul!");
            PlayerInfo[playerid][pPremiumPoints] -= StagePrice[0][CarInfo[idd][cStage]+1];
            Iter_Add(IsSpeed, playerid);
            Update(playerid, pPremiumPointsx);
            SCMEx(playerid, COLOR_WHITE, "{227FC3}Tunning System: {FFFFFF}You upgrade your vehicle successfully to stage %d for %d premium points.", CarInfo[idd][cStage]+1, StagePrice[0][CarInfo[idd][cStage]+1]);
            mysql_format(SQL, string, sizeof(string), "UPDATE `cars` SET `Stage`='%d' WHERE `ID`='%d'", CarInfo[idd][cStage]+1, CarInfo[idd][cID]);
            mysql_tquery(SQL, string, "", "");
            CarInfo[idd][cStage] ++;
               format(string, sizeof(string), "Your vehicle is~y~ %s~n~~w~~h~Max. speed:~y~ %d km/h~n~~w~~h~Current stage:~y~ %d/3~w~~h~~n~boost: ~y~+%d km/h~w~~h~ / ~b~ %d km/h"
            ,aVehicleNames[GetVehicleModel(GetPlayerVehicleID(playerid))-400], CarInfo[idd][cMaxSpeed], CarInfo[idd][cStage],StageSpeed[0][CarInfo[idd][cStage]], CarInfo[idd][cMaxSpeed]+StageSpeed[0][CarInfo[idd][cStage]]);
            PlayerTextDrawSetString(playerid, StagePTD, string);
        }

 

YCMD:givevehicle(playerid, params[], help) {
    if(PlayerInfo[playerid][pAdmin] < 7) return SendClientMessage(playerid, COLOR_WHITE, AdminOnly);
    new id, model, string[180],temporar;
    if(sscanf(params, "uii", id, model, temporar)) return SendClientMessage(playerid, COLOR_GREY, "USAGE: {FFFFFF}/givevehicle <playerid/name> <model> <temporar>");
    if(!IsPlayerConnected(id) || id == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_GREY, "Acel player nu este conectat.");
    else if(GetSlots(id) <= Iter_Count(MyVehicle[id])) return SCM(playerid, -1, "Acel player are numarul maxim de masini personale! Isi poate cumpara un slot din /shop.");
    
    format(string, sizeof(string), "* Ai primit un %s de la administratorul %s.", aVehicleNames[model-400], GetName(playerid));
    SCM(id, COLOR_YELLOW, string);
    format(string, sizeof(string), "* I-ai dat lui %s un %s.", GetName(id), aVehicleNames[model-400]);
    SCM(playerid, COLOR_YELLOW, string);                
    GiveVehicle(id, model, 0, 0, 0, 0, temporar);    
    return true;

Vezi daca iti da update in baza de date in `cars` la `Stage` si pe langa asta vezi unde este sistemul in sine facut adica unde se activeaza acest 'speed boost' un timer ceva etc.. si vezi si acolo.

Ce inseamna cuvantul "Unic" este atunci cand Chestia / Obiectul / Idea / etc... nu exista in alta parte.

Copii, nu mai veniti cu vorbe de "Am gamemode unic", nu exista asa ceva, la ora actuala totul este pe net.

Aveti grija pe cine ajutati, majoritatea sunt caini.

Link to comment
Share on other sites

  • 0
Acum 2 minute, TheGodfather a spus:

De updatat se updtateaza corect nivelul de stage, dar viteza nu, de ex infernus cu stage 1 ramane tot la 209, in loc de 219 chiar daca e stage 1. Dar merge cu 219 in joc

Nu se da update la text sau la viteza in sine ?

Daca nu se da update la text practic cauta unde e textul ala si vezi daca e cum trebuie cu cMaxSpeed sau cum se numeste variabila.

Ce inseamna cuvantul "Unic" este atunci cand Chestia / Obiectul / Idea / etc... nu exista in alta parte.

Copii, nu mai veniti cu vorbe de "Am gamemode unic", nu exista asa ceva, la ora actuala totul este pe net.

Aveti grija pe cine ajutati, majoritatea sunt caini.

Link to comment
Share on other sites

  • 0
Acum 1 minut, TheGodfather a spus:

image.png.f8c44520f8e67cd0a6a2e0351f97ead6.png

sultan cu stage 3 si viteza maxima 159km, ar trebui sa aiba +200 cu stage 3 dar nu se updateaza in baza de date

image.png.817b8db4f64a54dfbf69f2bb94ccb758.png

infernus stage 3, si premium (de asta arata la viteza 300+ km), desi scrie 300 in joc poate sa mearga cu mai mult

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.