-
Posts
282 -
Joined
-
Last visited
-
Days Won
1
Everything posted by DBY
-
Buena idea, como está ahora es un poco caos.
-
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.
-
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)
-
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.
-
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.
-
I put "print()" into file i want compile. But still return "error"
-
LOL, ¿unique scripts? See this: http://lsc-rp.com/index.php https://owlgaming.net/index.php
-
Your code does the same job as my code. Still creates a file containing "ERROR".
-
It looks great, good design. PD:
-
The script creates the file, but inside it there is only "ERROR"
-
Caos Host - VPS/Dedicados/GameHosting/Dominios/WebHosting
DBY replied to Caos Host Official's topic in Soluciones de hosting
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... -
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"
-
Thank you very much for commenting, but these functions do the same thing that I've done. PS: Still not working.
-
That I had already tried, but still not working. (Now do not get errors in the debugscript)
-
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 )
-
[APORTE] Sonidos diferentes a cada arma ( DayZ )
DBY replied to Kilfwan's topic in Recursos y aportes
-
Parece que no sabes buscar, en esta misma página de la sección tienes una petición de lo mismo.
-
Que funciones debo usar para SQLite? PD: Ya testie todo, No hay ningun bug. Cómo lo vas a testear si no sabes usarlo -.-
-
Haya, por Dios.
-
XML personalmente no lo recomiendo. SQLite, MYSQL o .txt con JSON son los que yo utilizaría.
-
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.
-
MYSQL, SQLite, un archivo .txt y JSON, xml...
-
Corregirlo no es quitar lo que no sabes arreglar. Además, esa era la única idea buena del script
-
Tienes razón, lo tendré en cuenta para la próx.
-
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. )