Jump to content
  • 0

Problema /email [nectit] si [citit]


Rayan

Question

Salut, am o problema la comanda /email, daca am de exemplu 2 email-uri necitite sau mai multe de 1, cand scriu /email si aleg un email necitit, dupa care il citesc si dupa dau iar /email, nu imi mai apare niciun mesaj necitit , ci doar daca am vazut un email necitit si intru in el, se pun si restul ca citite.

ex: am 3 email-uri:

[necitit] ai primit wanted 4 de la andrei

[nectit] ai primit mute de la adminul victor

[nectiti] ai primit warn, motiv: limbaj vulgar.

Eu daca intru doar intr-un email Necitit, mi se pun toate ca 'citite', nu doar cel in care am intrat.

Ma puteti ajuta, va rog?

Aveti aici tot ce va trebuie:

comanda /email: https://pastebin.com/VTghSqNX

DIALOG_EMAILS: https://pastebin.com/6ep8ajPb

DIALOG_EMAILS2: https://pastebin.com/ZKkbUxF1

Imi puteti spune care este problema?

Edited by Rayan
Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Pentru ca acest query e gresit:

mysql_format(SQL, query, sizeof(query), "UPDATE `emails` SET `EmailRead`='0'");

Updatezi tot din simplu fapt ca iti lipseste where clause

mysql_format(SQL, query, sizeof(query), "UPDATE `emails` SET `EmailRead`='0' WHERE `ID` = %i", EmailId[playerid][listitem]);

Link to comment
Share on other sites

  • 0

Hai ca..nu mi-a dat erroare si buguri peste tot la sistemul register, ca am uitat amandoi sa punem la = %d , = '%d' =)) urasc asta la samp, pentru o ghilimea daia ce ie, iti face buguri cat cuprinde serverul..

 

dupa 3 ore mi-am dat si eu seama, nicio problema

 

Edited by Rayan
Link to comment
Share on other sites

  • 0

La integer nu trebuie apostrof , apostroful se foloseste pentru stringuri.

Faptul ca nu-ti merge fara apostrof e destul de nasol, pentru ca query-urile cu toate ca nu ar trebui   accepta apostrof la integer din nu stiuce motiv.

Mie imi merge foarte bine fara apostrof:
 

mysql_format(g_SQL, query, sizeof(query), "UPDATE `banks` SET `BankMoney` = %i WHERE `pid` = %i", APlayerData[playerid][BankMoney], APlayerData[playerid][SQLID]);

Dar in fine, ma bucur ca l-ai rezolvat

Link to comment
Share on other sites

  • 0

Mersi mult oricum, apreciez. la gamemode bigzone cam asa e, se foloseste apostroful la '%d', si merg toate bine..

 

vad ca am mai rezolvat o problema, de la cacatu ala de include <OPA> sau <OnPlayerFakeKill> imi dadea niste buguri pe la sistemu de register..

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