Jump to content

xTravax

Members
  • Posts

    665
  • Joined

  • Last visited

Everything posted by xTravax

  1. i dont understand how would this fix the problem the problem is it says (for addEventHandler: )element on argument 2 is nil - GUIEditor.button[1] <-- that one and that button is already created in window but it still says that its nil
  2. yeah correct but, how do i fix this then?
  3. https://community.multitheftauto.com/index.php?p= ... ls&id=5836
  4. it's already under it i have first function which guieditor resource made and my function is already under that function so button is already created but when i click on it it doesnt output anything as it gives that error - expected element at argument 2 but got nil
  5. just one more thing why do i keep getting error expected element at argument 2 but got nil? function colt ( ) outputChatBox("Colt-45",localPlayer) end addEventHandler ( "onClientGUIClick", GUIEditor.button[1], colt, false )
  6. i got warnings in line 100 and 105 bad argument guiGetVisible and guiSetVisible (expected gui-element at argument 1,got nil) edit: nvm i fixed it by myself,thanks
  7. hi this code isnt working function openGui() if guiGetVisible ( GUIEditor_Window[1] ) then -- line 100 guiSetVisible ( GUIEditor_Window[1], false ) showCursor(false) guiSetInputEnabled(false) else guiSetVisible ( GUIEditor_Window[1], true ) -- line 105 showCursor(true) guiSetInputEnabled(true) end end bindKey("F6","down",openGui) line 100: attemp to index global 'GUIEditor_Window' a nil value please help im new to gui
  8. not really everything but almost everything
  9. xTravax

    downloadFile

    well then maybe my code or meta is wrong function downloadTimer() setTimer(downloadFiles,30000,1) end addEventHandler("onClientResourceStart",root,downloadTimer) function downloadFiles() outputChatBox("downloading server files...") downloadFile ( "test.png" ) downloadFile ( "test.mp3" ) downloadFile ( "image.jpg" ) downloadFile ( "font.ttf" ) end function downloadFinish() outputChatBox("Download Finished!") addEventHandler("onClientFileDownloadComplete",root,downloadFinish) perhaps i need to have same order in meta as in script with downloading files? btw here are test files i've used https://www.mediafire.com/?wx6446kmkdpf651
  10. xTravax

    downloadFile

    lol the only reason i got mta 1.4 at all is because i saw that topic,so it has been updated to official release before i made this topic and it doesnt work and i dont know what to do
  11. xTravax

    The last reply

    denny, i'm sorry but you got AIDS.
  12. xTravax

    downloadFile

    i can't find the resource folder in both 1.3 and 1.4 folder F8 console outputs this Download error: HTTP server file mismatch (resourcename) font.ttf Download error: HTTP server file mismatch (resourcename) image.jpg Download error: HTTP server file mismatch (resourcename) test.mp3 Download error: HTTP server file mismatch (resourcename) test.png and local server console: [09:36:50] DIAGNOSTIC: *playername* #1002 HTTP server file mismatch (resourcename) font.ttf i checked in fetchRemote and it says 1002 is download aborted however i still dont get it,why does this function have anything to do related with html? could this error come because im using local server?
  13. you need to contact the server owner,only he can help you.
  14. xTravax

    downloadFile

    as far as i know it could be mta related bug as you said or it could be that the files are damaged,but my files are 100% sure not damaged so it must be a mta bug. would be nice if someone could report this bug as i can't make account on bugs.mtasa.com site
  15. xTravax

    downloadFile

    i tried this in my local server and it said http file mismatch resourcename/filename.txd or whatever i thought this is downloading from resource folder and not from the internet?
  16. xTravax

    downloadFile

    so it cant be overwritten if its already downloaded okay but would my example work for downloading?
  17. xTravax

    downloadFile

    hello i wanted to ask if this thing would be possible i got much mods in my server so im wondering about this -- meta "modname.dff" download="false" /> "modname.txd" download="false" /> --script function downloadTimer() setTimer(downloadFiles,30000,1) end addEventHandler("onClientResourceStart",root,downloadTimer) function downloadFiles() downloadFile ( "modname.dff" ) downloadFile ( "modname.txd" ) end this script has some flaws like whenever resource would start for someone,it would restart download and overwrite files but it can be fixed with fileExists function i was just wondering would this kind of thing work?
  18. text still gets drawn before i even use the command, and alpha doesnt change at all
  19. i am really sorry i am a total noob in this,i tried to make it but it just draws the text and doesnt decrease alpha at all because my code is wrong,feel free to laugh screenWidth,screenHeight = guiGetScreenSize() function someFunction() local alpha = 255 if (alpha) then dxDrawText ( "TEST", screenWidth/2, screenHeight/2, screenWidth, screenHeight, tocolor ( 255, 255, 255, alpha ), 1, "bankgothic" ) alpha = alpha - 1 end end addCommandHandler("dx",someFunction) function HandleTheRendering ( ) addEventHandler ( "onClientRender", root, someFunction ) -- keep the text visible with onClientRender. end addEventHandler ( "onClientResourceStart", resourceRoot, HandleTheRendering )
  20. i tried reading the wiki about it but i dont understand how to do this with: vector? any example please?
  21. hello! i wanted to ask something how can i make some dx text dissapear after 6 seconds with animation of fading out(alpha decreasing-fourth argument i believe) ?
  22. i tried editting and debugging but it always went to else part and outputted the message which indicates that it doesnt word
  23. thanks,just one more question related to scoreboard: what function do i need to use to draw an image left of the that Level tab on scoreboard?
×
×
  • Create New...