Jump to content
  • 0

Wanted bug


custura

Question

  1. Problemă: Cand ies de pe server si intru iar, am o problema cu wanted-ul, imi apare si dispare la 2 secunde dupa connectare
  2.  
  3. am pus SetPlayerWantedLevel(playerid, PlayerData[playerid][pWantedLevel]); la on playerconnect, l-am mutat si la onplayerspawn, tot aceasi problema
  4. La on playerspawn am si 
  5. if (PlayerData[playerid][pWantedLevel] > 0) {
    format(string2, sizeof(string2), "Inainte sa iesi de pe server, aveai wanted %d. L-ai primit inapoi!",PlayerData[playerid][pWantedLevel]);
    SetPlayerWantedLevel(playerid, PlayerData[playerid][pWantedLevel]);
    SendClientMessage(playerid, COLOR_WARNING, string2);
    wantedlost[playerid] = 1800;
    WantedPoints[playerid] = PlayerData[playerid][pWantedLevel]*2;
    }
Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

In primul rand, wanted-ul se salveaza corect in baza de date?

In al doilea rand, la login preiei din baza de date wanted-ul si il atribui la pWantedLevel?

Daca da, incearca sa faci aia acolo unde se incarca datele din baza de date.(ca si test)

Chestia cu disparutu nu stiu ce sa zic.Uita-te dupa alte SetPlayerWantedLevel care ar putea seta pe 0.

Edited by Banditul
Link to comment
Share on other sites

  • 0
La 13.05.2017 la 9:45, Banditul a spus:

In primul rand, wanted-ul se salveaza corect in baza de date?

In al doilea rand, la login preiei din baza de date wanted-ul si il atribui la pWantedLevel?

Daca da, incearca sa faci aia acolo unde se incarca datele din baza de date.(ca si test)

Chestia cu disparutu nu stiu ce sa zic.Uita-te dupa alte SetPlayerWantedLevel care ar putea seta pe 0.

De incarcat il incarca, dar nu inteleg dc arata inainte sa ma conectez si cand m-am conectat dispare.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • 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.