Jump to content
  • 0

[Ajutor] Problema Id house, masina personala!


cOBRa

Question

Salut, am si eu urmatoarea problema cu vehiculele personale...

la inregistrarea lor in baza de date, se salveaza tot normal, totul bine si frumos, dar la restart, toate masinile create scad id cu -1

Adica, din 1 va fi 0, din 2 va fi 1 si tot asa.

Aceasi problema o am si la sistemul de house!

Precizez ca gamemode-ul este  Side-Project v1.1 si am updatat sistemul de dealership a lui maurice!

la masini nu vazusem asta chiar foarte exact, dar cand am facut /createhouse am vazut ca in loc de Id 1, se creaza Id 0 ... si dupa am facut un "debug" sa vad ce id are si masina..

Si de acolo am vazut ca in baza de date era 1 si in joc era 0.

Poate gasim o rezolvatre

LoadCars: https://pastebin.com/Le7hyn1d

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

la loadcars incearca sa pui la toate variabilele incarcate i+1 in loc de i (ex: cache_get_value_name_int(i, "ID", CarInfo[i+1][cID]), CarInfo[i+1][cModel] etc), la fel si la incarcarea caselor

Edited by NERS
sa fie mai clar
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.