Jump to content
  • 0

Comanda /sfv - Problema


CiprianRIN

Question

2 answers to this question

Recommended Posts

  • 1
1 hour ago, CiprianRIN said:

Salut, cand folosesc comanda "/fveh"(aceasta este doar pentru test) nu apare nicio masina pentru factiunea respectiva, din baza de date. Masinile sunt salve in baza de date

Imagine: https://imgur.com/a/tVtNkj0
Comanda / functia : https://pastebin.com/ZEcGrQsT

ai pus array-ul gresit la mysql_query, tb gQuery ca pe ala l ai formatat

 

tips: nu mai folosii query-uri unthreaded ca o sa-ti blocheze main thread-ul si daca ai noroc si dureaza query-ul 10 secunde sa se proceseze, server-ul tau va sta si el desincronizat vreo 10 secunde.

 

also, ti-as recomanda sa-ti restructurezi structura sistemului in asa fel incat sa incarci vehiculele factiunilor in memorie la initializarea server-ului si sa poti accesa usor vehiculele unei factiuni, si nu vei mai avea nevoie de interogare catre baza de date de fiecare data cand un jucator foloseste comanda.

Edited by Sancky
  • Thanks 1
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.