Jump to content

Tekken

Helpers
  • Posts

    1,423
  • Joined

  • Last visited

  • Days Won

    19

Everything posted by Tekken

  1. I was a bit angry because i have some problems, but you didn't want to understand.
  2. Everything works ok only that thing, and i think that's normal, I came here because i thought somebody will give me a better idea.
  3. Do you know how to/fromJSON work's ? when i send that data in THE SAME json will OVERRITE old data! and keep only the last one. Man you are inserting new values every time did you tired : dbExec(db, "UPDATE table(json) SET value = ? WHERE yourData = ?", json) this will just give NULL.
  4. Do you know how to/fromJSON work's ? when i send that data in THE SAME json will OVERRITE old data! and keep only the last one.
  5. Ohh, man but that's my problem..., why don't you understaind ? IS OVERWRITING old values!!
  6. Yes but will still overwrite the old values...
  7. I can't show my full code but SAVE local theID = getElementModel(element) local thenr = getElementHealth(element) local json = toJSON({theID, theNr}) --- Bla, bla dbQuery(db, "INSERT INTO table(json) VALUE(?)", json) LOAD local theID, theNr = unpack(fromJSON(json))
  8. HI, i need some help on toJSON and fromJSON. My problem is this: I save ID, NUMBER like this: local json = toJSON({ ID, NR }) Everything work's ok but I need to save like 20 ID's and 20NR's but each time will overwrite the old ID/NR and I don't want that... Any help ?
  9. I mean this : Soryy, but i don't know a beter way to explain.
  10. Can you make an example please ?
  11. I want to create a vehs table and in that table to store more vehs like this: dbQuery(db, "CREATE TABLE IF NOT EXISTS vehs (veh1(x,y,z), veh2(x,y,z))") Can i do that in any way ?
  12. For now, that's not possible ...
  13. Tekken

    Bug Resursă

    sterge resursa si incarco din nou, este posibil sa se fi corupt vreun fisier cand ai urcato prima oara.
  14. Hmm, were did you get Tent + Vehicle system ? Edit: Legit ^.^
  15. Tekken

    VPS Problem

    Thank's, some times i am so stupid.
  16. Tekken

    VPS Problem

    Nothing changed, and I already read those...
  17. Tekken

    VPS Problem

    Hi, Today I bought a VPS and I installed MTA Server on it but when I type ./mta-server to start server is keep saying -bash: ./mta-server: No such file or directory Any idea what ?
  18. Server function toggleInvis(thePlayer) local id = getElementModel(thePlayer) if id == 179 then local alpha = getElementAlpha(thePlayer) if alpha == 255 then setElementAlpha(thePlayer, 0) else setElementAlpha(thePlayer, 255) end else setElementAlpha(thePlayer, 255) end end addCommandHandler("invis", toggleInvis) Client function showOnShoot() setElementAlpha(source, 255) end addEventHandler("onClientPlayerWeaponFire", getLocalPlayer(), showOnShoot)
  19. That looks good, what you think? https://gta-mp.net/ WIll MTA Team working in something like this ?
  20. Pare o idee buna dar mai pune si alte GMuri nu doar RP ca debine plictisitor si cum mie nu-mi pace RPu' din romania...., anyway succes!
  21. S-a inventat PMu' , folositil...
  22. Try this: function killCommand(thePlayer) setTimer(killPed(thePlayer, thePlayer), 5000, 1) end addCommandHandler("kill", killCommand)
  23. Beacause you come here for help and if someone need help we can send him directly to this post and he can solve the problem faster. That's why!
×
×
  • Create New...