Jump to content

DBY

Members
  • Posts

    282
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by DBY

  1. Buena idea, como está ahora es un poco caos.
  2. Anduve pensando en hacer un compiler, lo hice pero no me funcionaba fetchRemote en mi servidor local, así que aburrido intentando que funcionara se me ocurrió hacerle una interfaz. A continuación os dejaré un vídeo: Me gustaría que me dieran su opinión, cosas que se podrían mejorar, etc. PD: Mi inglés no es muy bueno, quizá puedan encontrar fallos en el GUI.
  3. Try this: table = { [24] = "Deagle", [26] = "Model 1887", [31] = "M4A1" } function giveWeaponCommand(p, c, w, a) if tonumber(w) then if table[tonumber(w)] ~= nil then local ammo = tonumber(a) or 500 if giveWeapon(p, w, ammo) then outputChatBox("¡New weapon!, is '" .. table[tonumber(w)] .. "' with '" .. ammo .. "' of ammo.", p, 255, 255, 0) end else outputChatBox("The inserted ID is invalid, try again.", p, 255, 0, 0) end else outputChatBox("Syntax: /" .. c .. " [weapon] [amount]", p, 255, 255, 255) end end addCommandHandler("wp", giveWeaponCommand)
  4. I love you, pero me sigue sin funcionar. He probado 4 compiladores ya aparte del mío, es problema de mi sv local o algo (No funciona fetchRemote). Sabe ke me kiere papi.
  5. DBY

    Compile lua file api

    Apparently, the problem is not the script, it's my localhost. FetchRemote not work, I tried some compilers and none worked for me. Your comments are appreciated.
  6. DBY

    Compile lua file api

    I put "print()" into file i want compile. But still return "error"
  7. LOL, ¿unique scripts? See this: http://lsc-rp.com/index.php https://owlgaming.net/index.php
  8. DBY

    Compile lua file api

    Your code does the same job as my code. Still creates a file containing "ERROR".
  9. It looks great, good design. PD:
  10. DBY

    Compile lua file api

    The script creates the file, but inside it there is only "ERROR"
  11. Precios demasiado caros por pocos slots y encima sin mysql... Tenía pensado contratar para ver si es cierto que tienen buen servicio, pero después de ver esto nanai...
  12. DBY

    Compile lua file api

    function fileSave(filePath, fileContent) if fileExists(filePath) then fileDelete(filePath) end local file = fileCreate(filePath) fileWrite(file, fileContent) fileClose(file) end function fileLoad(filePath) if fileExists(filePath) then local file = fileOpen(filePath) local fileContent = fileRead(file, fileGetSize(file)) fileClose(file) return fileContent end end function fileCompile(FROM, TO) if FROM and TO then fetchRemote("https://luac.multitheftauto.com/?compile=1&debug=0&obfuscate=0", function(data) fileSave(TO, data) end, fileLoad(FROM), true) end end The problem now is that it creates the file but the page returns "ERROR"
  13. DBY

    Compile lua file api

    Thank you very much for commenting, but these functions do the same thing that I've done. PS: Still not working.
  14. DBY

    Compile lua file api

    That I had already tried, but still not working. (Now do not get errors in the debugscript)
  15. I want to compile a file using API mta. But there are two functions that do not exist in MTA (fileSave and fileLoad) Any ideas? https://luac.multitheftauto.com/api/ local FROM="example.lua" local TO="compiled.lua" fetchRemote( "https://luac.multitheftauto.com/?compile=1&debug=0&obfuscate=0", function(data) fileSave(TO,data) end, fileLoad(FROM), true )
  16. Parece que no sabes buscar, en esta misma página de la sección tienes una petición de lo mismo.
  17. Que funciones debo usar para SQLite? PD: Ya testie todo, No hay ningun bug. Cómo lo vas a testear si no sabes usarlo -.-
  18. XML personalmente no lo recomiendo. SQLite, MYSQL o .txt con JSON son los que yo utilizaría.
  19. Lo estuve ayudando casi 30 min pero este tipo no tiene conocimiento alguno de lúa, Según me dijo que el script no funciona en host pero si en local pero nunca abrió su local ser ver para ayudarlo, las hacia en su host donde ni veía nada , Pero bueh intente ayudarle pero este tipo no entendía que el evento ya estaba agregado pero había borrado partes del script sin saber para que sirven ._. Si no tiene ni idea, ¿cómo quedará su RPG cuando abra? Tengo curiosidad.
  20. Corregirlo no es quitar lo que no sabes arreglar. Además, esa era la única idea buena del script
  21. Tienes razón, lo tendré en cuenta para la próx.
  22. Si un jugador acumula intentos para los demás también se acumularán los mismos. Así que si uno toca los cojones y viene el otro una sola vez a defenderse le va a mutear/kickear al último. Sería un buen método para ponerlo en práctica contigo, ni te enterarías y es tu propio script. ( En caso de que el script funcionara, que por lo que se ve, no lo hace. )
×
×
  • Create New...