Jump to content

iDannz [Breno]

Members
  • Posts

    38
  • Joined

  • Last visited

Everything posted by iDannz [Breno]

  1. When using destroyElement in GUI widgets, doesnt trigger event onClientMouseLeave if the cursor is inside the destroyed element, please fix
  2. when update mta to version "1.5.6-9.16413.0" some replaces has bugging, look at this, i just want to know whats happening http://prntscr.com/mnt6wq
  3. try to change resourceRoot to root in onClientResourceStart event
  4. maybe the problem is in your texture or dff model
  5. Boa noite, poderia me dizer onde está o setElementData que seta o "load_notLogin" pro player?
  6. what is the problem
  7. yeah, yesterday 10 players who was bugged earlier joined the server to help me to test, and nobody get the bug again xdxdxdxd im so happy now, thnx
  8. Hi bro, how are u? i think its already fixed, im using now dxCreateTexture, but i think the real problem was the getImage function (was inside an shared file)
  9. its working so good, the only one problem is at the line 20, local filePath... the table returns the filename without the file extension, so i used filepath = 'imagens/'..descricoes[name]..'.png' and its working, thnx, but i dont know if the real problem is fixed too with dxCreateTexture Hi loki, how are u? i didnot know this command, so i didnt tested it when the error appears, but using the userful function from iiyama, the problem is fixed for now, but ill still here seeing the memstat, thnx so much bro. guys, im thinking here... the table is in an shared type archive, the problem could be here?
  10. i use too many tables to do it, wait just a little --\\this is inside a for, and getImage is an userful function that takes the item name and returns the image filefrom other table --\\code in onclientrender to show image **** itens[indexSelected][pageSelected] is the name of item taken from other table. dxDrawImage (screenW *0.2000+i*screenW*0.0630, screenH * 0.31, screenW * 0.0615, screenH * 0.0917, getImage(itens[indexSelected][pageSelected][i])..'.png', 0, 0,0 ) --\\userful function getImage (used to return the filename using the itemname) function getImage(name) if not descricoes[name] then return 'imagens/error' end return 'imagens/'..descricoes[name].img end --\\ table descricoes. (used in getImage function) descricoes = { --// CRAFTING PAGE 1 \\-- ['Machado'] = {img = 'machado', desc = 'Usado para facilitar a coleta de madeira.'}, ['all the others items'] = {img = 'xxx', description = 'item description.'}, }
  11. this isnt the correct page to do this ask, but you can try to use setTimer like this timer = {} --\\ create a table for all timers function fix (playerSource) if isTimer(timer[playerSource]) then return outputChatBox("Wait just a litte.",playerSource) end --\\ send an error msg to player, if he is spamming local interval = 15000 --\\ set up the interval in milliseconds local theVehicle = getPedOccupiedVehicle (playerSource) if theVehicle and getVehicleController ( theVehicle ) == playerSource then fixVehicle (theVehicle) outputChatBox ("Your vehicle has been repaired !" , thePlayer) timer[playerSource] = setTimer(function(playerSource) --\\ finally create the timer when player type the command. timer[playerSource] = nil end,interval,1,playerSource) end end addCommandHandler ("repair" , fix)
  12. Hello everyone, I'm having problems with this ... I have a DX panel, and the problem is this: Sometimes when the player is too long time on the server, or even randomly, the panel stops working due to the following warning: "WARNING: directory/client.lua: line xxx: Error loading image @dxDrawImage [:resourcename/folder/file.png " I do not consider myself to be a mta professional, but I'm also not a beginner, and I'm aware that this error happens when you try to display an image that does not exist in "meta.xml", for example. But in this case all images are listed perfectly within the "meta.xml" and within the client file that displays the images. Does anyone know what might be causing this? Remember that this is an intermittent error, that is, it happens in a random way, usually you connect, the panel is 100% normal, and as time passes the error occurs in several of the images, but also sometimes you already connect with the error. (It's happening in most of my resources that use dxDrawImage.) BUGGED: NORMAL:
  13. hi bro, i want to buy your ABCompiler, please send me an discord message iDannz [Breno]#2456
×
×
  • Create New...