Jump to content

thisdp

Scripting Moderators
  • Posts

    535
  • Joined

  • Last visited

  • Days Won

    9

Everything posted by thisdp

  1. Ok. Maybe it is caused by other factor. Thank u all the same
  2. loadstring can't load compiled script.I use loadstring to load scripts dynamically but I got this problem.
  3. I don't know why. The font in my script is working for most of players while a player got 'Error creating font @dxCreateFont' for all fonts (except the msyh.ttf) And it seems that render target doesn't working on his computer.
  4. How can I use "setBrowserAjaxHandler" on remote browser ?
  5. I created a browser for remote URL.How can I send data from Lua to Javascript?
  6. Why I can't see the cursor of the editor? And why i can't use input method to type other language into the editor? I will appreciate it very much if who can help me
  7. thisdp

    [HELP]Modules

    I have problem on 32 bit libraries (it crashes my server). Thank you all the same. I have already rewritten a simple dir scanner.
  8. I couldn't compile the ml_base with LINKER ERROR 1120 'unresolved externals' and 2001 'unresolved external symbol "_imp_sprintf"
  9. thisdp

    [HELP]Modules

    I use filesystem module on my 64 bit mta server. When I try to load this module, I saw this error message. [11:27:44] MODULE: Unable to load x64/modules/fileSystem_13.so (/home/wwwroot/gameserver/data/public/race_test/x64/modules/fileSystem_13.so: wrong ELF class: ELFCLASS32) How can i deal with it?
  10. thank you all the same. Actually I found a better way, but it is complicate matters. I can use a socket system with file system as Downloading System. Like node.js or a game engine(like love2d). I can open it manually while I am in the server. Create an interface between MTA Client and Downloading System with a file, and download files with it's socket system.
  11. There's no way to let client download files from other website?
  12. i can't use fetchRemote in client side. And if i use fetchRemote and triggerClientEvent, the server's bandwidth can't hold these files.
  13. I made a mistake while i was making a script. When I tried to get the LOD Distance of model 20000, my MTA crashed. engineGetModelLODDistance(20000)
  14. I want to create a 25 ms loop but I noticed one problem. local timer = {} addEvent("onClient25MsLoop",true) timer[1] = setTimer(function() timer[2] = setTimer(function() triggerEvent("onClient25MsLoop",root) end,50,0) end,50,1) timer[3] = setTimer(function() timer[4] = setTimer(function() triggerEvent("onClient25MsLoop",root) end,50,0) end,75,1) addEventHandler("onClient25MsLoop",root,function() outputChatBox(getTickCount()) ----------every output should differ by 25 ms end) setTimer(function() killTimer(timer[2]) killTimer(timer[4]) end,2000,1) Well,I set two 50-ms-loop timers.One with 50 ms delay and the other with 75 ms delay(they differ by 25 ms).At first several milliseconds,they work prefect,but after a second,they go wrong. The 25-ms-difference become invalid.
  15. I have already tried it. But it seems that it doesn't work
  16. make your speedometter have min/max size.I hope this way can help you.
  17. I think that the error message shows when you are downloading resource. This means your client script doesn't start when server triggers client event.From your script,I found that the value of "timer" is defined as "number" but in your meta, "timer" is a string.
  18. for example i use "loadstring" to create a function and event as load script. Then i want to delete them as unload script.
×
×
  • Create New...