Jump to content

[REZOLVAT] Problema /mdc


AlexGX24
 Share

Recommended Posts

Salut baieti am si eu o problema la comanda asta

Cand dau /mdc apare This player was not found in our database." va rog ajutor

GetPlayerMdc(playerid, target) {
    if(pInfo[target][pWanted] > 0) {
        new Float:px, Float:py, Float:pz;
        GetPlayerPos(target, px, py, pz);
        SCMEx(playerid, -1, "** Mobile Data Computer - %s [%d] - wanted: %d, distance: %0.2fm.", GetName(target), target, pInfo[target][pWanted], GetPlayerDistanceFromPoint(playerid, px, py, pz));
        new mdcStr[256];
        format(mdcStr, 256, "Suspected for: %s", pInfo[target][pWantedReason]);
        if(strlen(mdcStr) > 120)  {
            new secondLine[128];
            
            strmid(secondLine, mdcStr, 110, 256), strdel(mdcStr, 110, 256);
            SCMEx(playerid, COLOR_GREY, "%s ...", mdcStr), SCMEx(playerid, COLOR_GREY, "[...] %s", secondLine);
        }
        else SCM(playerid, COLOR_GREY, mdcStr);
    }
    else SCM(playerid, COLOR_GREY, "This player was not found in our database.");
    return 1;
}

Link to comment
Share on other sites

  • Manager

Atunci acel jucator are wanted 0, prin "This player was not found in our database." nu m-am referit la baza de date a serverului ci "baza de date a suspectilor".

Daca totusi are wanted, verifica daca i se modifica si variabila (pWanted) ce stocheaza nivelul de wanted in momentul in care jucatorul obtine acel wanted.

Link to comment
Share on other sites

  • 3 weeks later...
La 30.03.2023 la 1:58, L0K3D a spus:

Atunci acel jucator are wanted 0, prin "This player was not found in our database." nu m-am referit la baza de date a serverului ci "baza de date a suspectilor".

Daca totusi are wanted, verifica daca i se modifica si variabila (pWanted) ce stocheaza nivelul de wanted in momentul in care jucatorul obtine acel wanted.

Aparea asta pt ca eu incercam pe un player care nu avea wanted.

Link to comment
Share on other sites

  • Manager

Problemă rezolvată
Topicul a fost închis și marcat ca fiind rezolvat. Dacă consideri necesară redeschiderea acestuia, contactează un moderator.
Topicurile cu problemele rezolvate și nerezolvate ajung in acelasi loc, le puteți găsi aici.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...