Jump to content

thisdp

Scripting Moderators
  • Posts

    535
  • Joined

  • Last visited

  • Days Won

    9

Everything posted by thisdp

  1. updatedgs and is there something different?
  2. function testRender() print("render~") end addEventHandler("onClientRender",root,testRender) setTimer(function() removeEventHandler("onClientRender",root,testRender) print("Handler Removed") end,5000,1) removeEventHandler means to detach the function from the handler.
  3. updatedgs and you will find the problem solved.
  4. I will fix it after i return home. It seems that dx gui in render target will cause this problem.
  5. Stack Over Flow. I mean you make the code into a dead loop. If you set text under the event "onClientDgsDxGUITextChange" without conditions. It will lead the thread into a dead loop. TextChanged->SetText->TextChanged->SetText... From your code I think that what you need may be this function. dgsDxEditSetWhiteList(edit,"[^0-9$]") I fixed the problem, updatedgs.
  6. What gui types SUI will have?
  7. I think that you should go to wiki and have a look. https://wiki.multitheftauto.com/wiki/BindKey The first argument of call back function sticked to bindKey is the key you pressed or released.
  8. From the argument, we know he use bindKey on client side. If he pass such arguments on server side, warning will be caused.
  9. DGS:dgsDxGUISetProperty(button,"wordbreak",true) Don't worry about it, it will be fixed in the next update/version. Thanks for your advice.
  10. May be this will help you. I have just finished it. https://wiki.multitheftauto.com/wiki/Dgs-dxmemo
  11. Your problems are solved. Update DGS to 2.94. See update log : http://angel.mtaip.cn:233/dgsUpdate
  12. What will it happen when you turn off "debugdgs" ?
  13. Thanks for your report. And I will fix them soon.
  14. Thanks for your advice. Actually my dxlib focus on the designing. There are a lot of properties of every dxgui. Most of original gui functions can be replaced by dgs' ones directly.
  15. I don't have such problem. try to update your dgs to the latest version with updatedgs
  16. This has low performance. We will use shader instead.
  17. I will confirm it at this weekend.If it really exists I will fix it. And thanks for your report.
  18. thisdp

    dx GUI

    Maybe my dxlib can help you.
  19. dxDrawText ( playerZoneName, 44, screenHeight - 41, screenWidth, screenHeight, tocolor ( 0, 0, 0, 255 ), 1.02, "pricedown" ) dxDrawText ( playerZoneName, 44, screenHeight - 41, screenWidth, screenHeight, tocolor ( 0, 0, 0, 255 ), 1.02, 1.02, "pricedown" )
  20. thisdp

    Help me

    The difference between server and client scripts is obvious. Server Scripts are loaded by MTA Server, it can affect all players. Client Scripts are loaded by Player's MTASA application, it can only affect the play who load the script (except some functions that will sync data to server). The best explanation is the sync system. Server --Sync To--> Client Client --Sync To--> Server In this way, data can be exchanged from server to client or from client to server. Whether you will see something have an effect on other players depends on whether the data is exchanged.
  21. Update dgs, and you can switch the edit with "tab".
×
×
  • Create New...