Jump to content

MAB

Members
  • Posts

    313
  • Joined

  • Last visited

Everything posted by MAB

  1. MAB

    playSound

    What are you talking about? run the link on your browser and see yourself, it will play GTA:SA music.
  2. MAB

    playSound

    the only change is that the debug messages are gone.. still no sound to hear
  3. MAB

    playSound

    song file? you mean a file on the meta.xml and i use playSound for it?
  4. Thank you guys for trying to help..Dealman yours isn't working .. the html thing is here but i see nothing...i used a html file and the createBrowser function example : meta: client: html:
  5. removed skype but anyway look at the script after i finished it.. here
  6. MAB

    playSound

    Ops wrong one..
  7. I want to play a youtube video in full screen.. i know how to create browser and etc.. but how to full screen the video without the player click on the full screen button?
  8. MAB

    playSound

    i found my own working way.. thanks for everyone who tried to help
  9. OMG thanks a lot man... my resource is almost done now... do you have a facebook account? i want to add you
  10. note : dataText is a sum... Error: attempt to call local 'result' (a number value) code : client : function getResult () if getElementData(localPlayer,"calculator") == true then local dataText = getElementData(localPlayer,"calculatorText"); local result = loadstring ( "return "..dataText )(); local theNumber = result() if theNumber then setElementData(localPlayer,"calculatorText",theNumber) else setElementData(localPlayer,"calculatorText","Error") end end end bindKey("num_enter","down",getResult)
  11. let me be more clear.... i got a string that looks like this one "1+2-10/100*60-(1+8)" it isn't simple like "1+3" and that string keeps changing every time... now i need a code that can get the result of all of these strings... is it possible? by the way... loadstring isn't working
  12. i got a string that is like that for example "1+3", when i do tonumber for that string it returns nil not 4, why? how to fix this?
  13. 1. How to bind backspace to delete the last character in a string? 2. What is "num_sep" at KeyNames? 3. How to bind these characters: "(" and ")" ? i can't find them in the KeyNames. 4. Thanks
  14. MAB

    Images

    Thanks guys.
  15. MAB

    Images

    I was wondering, how do you make an image fit all screens?! like HUDs, i do fit texts, rectangles and lines like that. local sx,sy = guiGetScreenSize() -- to be used later to fit the drawing elements with all screen resolutions local x,y = 1280/sx,768/sy -- my screen resolution is 1280x768x32 .. this is a shortcut of guiGetScreenSize function example function draw () dxDrawLine(x*1093,y*134,x*1093,y*149,tocolor(0,0,0,255),x*3,false) dxDrawRectangle(x*1094,y*115,x*(121),y*14,tocolor(150,150,0,200),false) dxDrawText("hi",x*1005,y*157,x*1221,y*197,tocolor(0, 0, 0, 255),x*1.1, "bankgothic", "left", "top", false, false, false, false, false) end addEventHandler("onClientRender",root,draw) So this fits the positions and widths and heights and scales etc.. it makes it small when the screen resolution is small and big with the big screen resolution... now for an image.. lets say i have a 50x50 .jpg file now if the screen resolution of the player is bigger than the one i made the resource in, the width and height will be more than 50 because i am going to do this in the height and width arguments "x*50,y*50" so it is bigger than 50 when the player's screen resolution is bigger than mine... making a image smaller doesn't effect the way it looks but when putting it in bigger widths and height than it is, it is going to look like if it is zoomed and bad so my question is about how to make my image fit bigger resolutions than mine like texts and rectangles etc...
  16. When i go to screen resolution settings i find that the last screen resolution is 1280x768 ... is it that for you too?
  17. What is the max screen resolution can mta run at? Is it 1280x768 ???
  18. MAB

    Delete my topic

    Sorry, my fault
  19. What about Timers and getElementData / setElementData ? Timer too in case you did it like that for example: setTimer ( functionName, 1000, 0) It will restart the function for each one second... Yea , what about the set and get ElementData
  20. What about Timers and getElementData / setElementData ?
×
×
  • Create New...