Jump to content

Pouloud

Members
  • Posts

    16
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Pouloud's Achievements

Square

Square (6/54)

0

Reputation

  1. Hello i need help to save the handling of my vehicles in my mysql database. part of my script works because the handling is well modified when the vehicle spawn but i have this error: First i save the handling: (i think this funtion works properly) function saveVehicle (source) local dbid = tonumber(getElementData(source, "dbid")) or -1 if isElement(source) and getElementType(source) == "vehicle" and dbid >= 0 then local hTable = getVehicleHandling(source) local hString = toJSON(hTable) mysql:query_free("UPDATE vehicles SET `handling`='" .. mysql:escape_string(hString) .. "' WHERE id='" .. mysql:escape_string(dbid) .. "'") after that i would like to apply the handling to my vehicle: function loadVehicle (id) local row = mysql:query_fetch_assoc("SELECT * FROM vehicles WHERE id = " .. mysql:escape_string(id) .. " LIMIT 1" ) if row then local veh = createVehicle(row.model, row.currx, row.curry, row.currz, row.currrx, row.currry, row.currrz, row.plate, false, var1, var2) if veh then local hTable = fromJSON(row["handling"]) if row.handling ~= null then for property, value in pairs(hTable) do setVehicleHandling(veh, property, value) end else local modelID = getElementModel ( veh ) local handlingTable = getOriginalHandling ( modelID ) for property, value in pairs (handlingTable) do setVehicleHandling(veh, property, value) end end end end Excuse my bad english
  2. I have tried to make my own script for attach/detach trailer from a vehicle. i can detach the trailer like that: is someone able to help me to make the attach function ?
  3. Bonjour a tous et merci de lire ce post comme dit dans le titre je suis a la recherche d'un scripteur ou une personne capable de modifier un script existant ou bien d' en créer de nouveaux, j ai plusieurs scripts (plus ou moins compliqués a créer/modifier) Donc si vous êtes intéressé faites moi signe cordialement Paul
  4. Thanks you for your reply Why not but the player must do the command for attach the trailer, right ? also can you help me for create this script ? thanks you
  5. Hello I would like to make a script for attach or detach trailers and specify what car can attach the trailer i have make a searh on the mta wiki and i have found that attachTrailerToVehicle but the problem is this function create a vehicle and i woul like to attach/detach trailers for any vehicles anyone can help me ?
  6. Hello and thanks for your message I nedd many things first: I have a Roleplay gamemode who as a Speedometer but it is not cool so i would like to replace with another i have (It has more functions) and i would like this new SPeedo work witk my Gamemode (Fuel, nitro, sql for the traveled kms ,...) after I need to modificate my vehicle system because actually a player can show, hide or recover a vehicle, when you log out the vehicle hide. I would like the vehicle allways on the map player logining or not... no recovery, show, hide options if you are able to do that i have lot of other things for you Thanks you Cordially (Excuse me for my bad english i'm french and i have a college level in english )
  7. Hello everyone, I'm looking for someone who would be able to create / edit scripts for me, of course I am ready to pay this person thank you in advance for your answers cordially
  8. the problem is that I do not recognize the functions in the new script I think it is not in English local [color=#FF0000]kapcsolat[/color] = exports["RB_Mains"]:getConnection() function saveKilometer([color=#FF0000]jarmu[/color],km) exec = dbExec([color=#FF0000]kapcsolat[/color], "UPDATE vehicles SET traveled = ? WHERE ID = ?",km, getElementData(jarmu,"id")) if exec then outputDebugString("mentve",1) end end addEvent("saveKilometer",true) addEventHandler("saveKilometer",getRootElement(),saveKilometer)
  9. Hello everyone and thank you for reading this topic I need help with a script first of all: I have a server with the Nerd Gaming gamemode. I would replace the original speedometer with one that has more functions (km, sql, turn light indicator) I want it to work with my gamemode but I just started in script and I do not think being able to realize his own because the codes are a little different. is anyone would be able to help me? thank you in advance for your help cordially (Sorry for my bad english)
  10. Big thanks to you Godfather I updated my server to 1.5.2 I downloaded the ml_socket.so and the mta-mysql.so modules i've reinstalled my gagemode All work perfectly, SQL work properly
  11. Ok, so can i reset my server, download the multitheftauto_linux_x64-1.5.2.tar and put directly the files on my server via ftp ? or an installation is mandatory thanks you for the help !
  12. I can't go to /home my fisrt directory is : / /mods /X64
×
×
  • Create New...