Jump to content

LukisLT

Members
  • Posts

    56
  • Joined

  • Last visited

Details

  • Gang
    -DG|

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

LukisLT's Achievements

Snitch

Snitch (10/54)

0

Reputation

  1. Ok's, i will try to do that, thanks for your reply!
  2. I don't know, i've never checked for it, i'm on www.vortexservers.com . this weird dl bug apeared yesterday.. for the first time
  3. Nope, we using the host for about 3 months already, and we haven't changed anything, just using our scripts... EDIT : i've been advised " restart should help " we did it like 10 times.. nothing.
  4. Hey guys, i'm not sure i'f i'm in the right section, but anyway, i got the following error when i try to join my server Error downloading requested files. HTTP response code said error. [ The requested URL returned error: 404 Not found ] [scoreboard/client.lua] and i get kick from server.. if i disable scoreboard, the any other script is on gives same error, just other name... of .lua script, so if here any solution to fix it witouth reinstalling the server in the host? or theres no way to fix it... ? EDIT : works only mapping GM... all other gamemodes bugged like this.. thx.
  5. Hey guys, i'm here with a question, about DM server bug, that creates me new objects in maps that is not even been used in the map, and some of the maps have blocked roads, just becouse of that object, and once i looked in the " debugscript 3 " i don't see any error about that thing... any suggestions what would that be? the bug apeared just an hour ago.. Thanks!
  6. Fixed, Thanks Solid for your help!
  7. Thanks, guis working fine.. just some extra error in lines : 88 and 123... and not loading my song from my file, once i try to press " play " it just says, song is offline, but there is no song loaded at all...
  8. Anyway to solve this problem?
  9. musicplayerGUI.window = guiCreateWindow(340, 195, 494, 578, "FNF// - Music Player 1.3", -- Line 21 guiSetFont(musicplayerGUI.label1, "default-bold-small") -- Line 37 But what does it have with my errors i get?
  10. Gui opened, but this time, not loading any of my componenets .. Thats include : labels, buttons, scrollbars img's.. etc. and showing error this time ERROR : lua:21: attemt to index global 'musicplayerGUI' (a nil value) EDIT : the bind key bugged too, opened, only once i started the script, but not closing with they bind key.
  11. Hey guys, i've got some strange problem into my script( old version of script ) i just made a new gui for it, and added some extra images... to make it look nicer, and more enjoyable. But, after i done that small change, the music player does not open at all, and shows me some error, that's it's not even in that line.. Client : local volume = 1 --Default Song Volume local guiShowing = false --Hide/Open local currentPlaying = nil --Coming with the next update. local state = nil --State Playing / Not Playing function stopGTAradio() setRadioChannel(0) cancelEvent() end addEventHandler("onClientPlayerRadioSwitch",getRootElement(),stopGTAradio) addEventHandler("onClientPlayerVehicleEnter",getRootElement(),stopGTAradio) ------------------------------------------------------------------------------- GUIEditor = { label = {}, scrollbar = {}, } musicplayerGUI = {}, musicplayer = {} musicplayerGUI.window = guiCreateWindow(340, 195, 494, 578, "FNF// - Music Player 1.3", false) guiWindowSetSizable(musicplayerGUI.window, false) musicplayer.logo1 = guiCreateStaticImage(10, 559, 475, 9, "Img/tab.png", false, musicplayerGUI.window) musicplayerGUI.grid = guiCreateGridList(128, 315, 350, 225, false, musicplayerGUI.window) guiGridListAddColumn(musicplayerGUI.grid, "Songs list", 0.9) for i = 1, 2 do guiGridListAddRow(musicplayerGUI.grid) end guiGridListSetItemText(musicplayerGUI.grid, 0, 1, "-", false, false) guiGridListSetItemText(musicplayerGUI.grid, 1, 1, "-", false, false) GUIEditor.scrollbar[1] = guiCreateScrollBar(328, 18, 18, 189, false, false, musicplayerGUI.grid) musicplayerGUI.button2 = guiCreateButton(21, 376, 97, 25, "Stop", false, musicplayerGUI.window) musicplayerGUI.button3 = guiCreateButton(20, 515, 97, 25, "Close", false, musicplayerGUI.window) musicplayerGUI.button1 = guiCreateButton(21, 325, 97, 25, "Play", false, musicplayerGUI.window) musicplayerGUI.logo2 = guiCreateStaticImage(262, 45, 212, 220, "Img/logo.png", false, musicplayerGUI.window) musicplayerGUI.label1 = guiCreateLabel(32, 66, 160, 17, "Hey laddies and gentleman..!", false, musicplayerGUI.window) guiSetFont(musicplayerGUI.label1, "default-bold-small") musicplayerGUI.label2 = guiCreateLabel(32, 83, 160, 17, "To play music in the player", false, musicplayerGUI.window) guiSetFont(musicplayerGUI.label2, "default-bold-small") musicplayerGUI.label3 = guiCreateLabel(32, 100, 160, 17, "Select the song from the list", false, musicplayerGUI.window) guiSetFont(musicplayerGUI.label3, "default-bold-small") musicplayerGUI.label4 = guiCreateLabel(32, 117, 160, 17, "And hit PLAY! < Enjoy >", false, musicplayerGUI.window) guiSetFont(musicplayerGUI.label4, "default-bold-small") musicplayerGUI.label5 = guiCreateLabel(314, 288, 160, 17, "Visit : [url=http://WWW.FNF-MTA.TK]http://WWW.FNF-MTA.TK[/url]", false, musicplayerGUI.window) guiSetFont(musicplayerGUI.label5, "default-bold-small") musicplayerGUI.volumeBar = guiCreateScrollBar(10, 469, 112, 17, true, false, musicplayerGUI.window) guiScrollBarSetScrollPosition(musicplayerGUI.volumeBar, 100.0) musicplayerGUI.label6 = guiCreateLabel(42, 434, 46, 15, "Volume", false, musicplayerGUI.window) guiSetFont(GUIEditor.label[6], "default-bold-small") guiScrollBarSetScrollPosition (musicPlayerGUI.volumeBar, volume*100) guiWindowSetMovable (musicplayerGUI.window, true) guiWindowSetSizable (musicplayerGUI.window, false) guiSetVisible (musicplayerGUI.window, false) -- Some Events -- addEventHandler ( "onClientGUIDoubleClick", musicplayerGUI.grid, onGuiClick, true) -- DoubleCLickPlaySong addEventHandler ( "onClientGUIDoubleClick", musicplayerGUI.grid, stopGTAradio, true) -- StartMusicTurnOffRadio addEventHandler ( "onClientGUIClick", musicplayerGUI.button1, onGuiClick, true) addEventHandler ( "onClientGUIClick", musicplayerGUI.button2, onGuiClick, true) addEventHandler ( "onClientGUIClick", musicplayerGUI.button3, onGuiClick,true) -- Events End -- stationsNames = {} stations = {} function showGui () if guiShowing then guiShowing = false guiSetVisible (musicplayerGUI.window, false) showCursor (false) else guiShowing = true guiSetVisible (musicplayerGUI.window, true) showCursor (true) end end addCommandHandler("startmusic",showGui) bindKey("f3","down","startmusic") function onGuiClick (button, state, x,y) if source == musicplayerGUI.button1 and state == "up" then --play button local selected = guiGridListGetSelectedItem (musicplayerGUI.grid) if selected then local stationName = guiGridListGetItemText (musicplayerGUI.grid, selected, musicplayerGUI.column) if stationName then if currentPlaying then stopSound (currentPlaying) end currentPlaying = playSound (stations[stationName]) setSoundVolume (currentPlaying, volume) state = "play" else outputChatBox ("[Music Player]: Cant Strean This Song") end elseif state == "pause" and isSoundPaused(currentPlaying) then setSoundPaused (currentPlaying, false) end end if source == musicplayerGUI.button2 and state == "up" then --pause button if isSoundPaused (currentPlaying) == false then setSoundPaused (currentPlaying, true) end end if source == musicplayerGUI.button3 and state == "up" then -- 3d local selected = guiGridListGetSelectedItem (musicPlayerGUI.grid) if selected then local stationName = guiGridListGetItemText (musicplayerGUI.grid, selected, musicplayerGUI.column) if stationName then triggerServerEvent ("onClientRadioCreate", getLocalPlayer(), getLocalPlayer(), stationName) end end end if source == musicplayerGUI.button3 and state == "up" then -- close showGui () end if source == musicplayerGUI.grid and state == "up" then -- grid list click local selected = guiGridListGetSelectedItem (musicplayerGUI.grid) if selected then local stationName = guiGridListGetItemText (musicplayerGUI.grid, selected, musicplayerGUI.column) if stationName then if currentPlaying then stopSound (currentPlaying) end currentPlaying = playSound (stations[stationName]) setSoundVolume (currentPlaying, volume) else outputChatBox ("[Music Player]: This Song Is Offline, Please report to admin") end end end end function OnScroll(Scrolled) if source == musicplayerGUI.volumeBar then volume = guiScrollBarGetScrollPosition (source) / 100 if currentPlaying then setSoundVolume (currentPlaying, volume) end end end addEventHandler("onClientGUIScroll",getRootElement(),OnScroll) function onRadioCreate (x,y,z,path) local sound = playSound3D (path, x,y,z) setSoundVolume (sound, volume) setSoundMaxDistance (sound, 20) end addEvent ("onNewRadioCreate", true) addEventHandler ("onNewRadioCreate", getRootElement(), onRadioCreate) function onStart () triggerServerEvent ("requestForRadios", getLocalPlayer(), getLocalPlayer()) end addEventHandler ("onClientResourceStart", getResourceRootElement(getThisResource()), onStart) function onJoin (radia, names, st) for k,v in ipairs(radia) do local sound = playSound3D (v[4], v[1], v[2], v[3]) setSoundVolume (sound, volume/100) setSoundMaxDistance (sound, 20) end stationsNames = names stations = st for k,v in ipairs(stationsNames) do local row = guiGridListAddRow ( musicPlayerGUI.grid ) guiGridListSetItemText ( musicplayerGUI.grid, row, musicplayerGUI.column, v, false, false ) end end addEvent ("sendAllRadios", true) addEventHandler ("sendAllRadios", getRootElement(), onJoin) Error's at line's : 37 and 20, hope some1 could help me to fix this. ERRORS : line 37 : @ bad argument @ ' addEventHandler ' expected function at argument 3 got nil ERRORS : line 20 : unexpected symbol near *=* ... final result : Loading script failed.. but script is actually loaded, just not opening with my bind button.. Thanks for reading/replying!
  12. Thanks, i'll try to look around bit more into old threads, i might find something usefull for me.
  13. Thanks for help, i was on my local to, and it's actually worked, after i restarted server. idk how's that posible, thanks for help anyway, gui fixed ~> functions added.. Readdy to work in some server EDIT : i use this line, to get player name to the gui guiSetText ( GUIEditor.label[6], getPlayerName ( localPlayer ) ) but i would like to make it color coded, is here anyway i could do that?
  14. Ofc not.. here it is : GUIEditor = { staticimage = {}, label = {}, } GUIEditor.staticimage[1] = guiCreateStaticImage(433, 215, 479, 521, "bgr.png", false) GUIEditor.staticimage[2] = guiCreateStaticImage(0, -5, 550, 40, "tab.png", false, GUIEditor.staticimage[1]) GUIEditor.label[1] = guiCreateLabel(176, 14, 99, 15, "Info Panel - BETA", false, GUIEditor.staticimage[2]) guiSetFont(GUIEditor.label[1], "default-bold-small") guiLabelSetColor(GUIEditor.label[1], 9, 200, 13) GUIEditor.label[2] = guiCreateLabel(27, 82, 84, 17, "Nick In-Game :", false, GUIEditor.staticimage[1]) guiSetFont(GUIEditor.label[2], "default-bold-small") GUIEditor.label[3] = guiCreateLabel(27, 109, 84, 17, "Serial :", false, GUIEditor.staticimage[1]) guiSetFont(GUIEditor.label[3], "default-bold-small") GUIEditor.label[4] = guiCreateLabel(27, 136, 84, 17, "Location :", false, GUIEditor.staticimage[1]) guiSetFont(GUIEditor.label[4], "default-bold-small") GUIEditor.label[5] = guiCreateLabel(27, 163, 84, 17, "Money :", false, GUIEditor.staticimage[1]) guiSetFont(GUIEditor.label[5], "default-bold-small") GUIEditor.label[6] = guiCreateLabel(130, 82, 84, 17, "", false, GUIEditor.staticimage[1]) guiSetFont(GUIEditor.label[6], "default-bold-small") GUIEditor.label[7] = guiCreateLabel(80, 109, 84, 17, "", false, GUIEditor.staticimage[1]) guiSetFont(GUIEditor.label[7], "default-bold-small") GUIEditor.label[8] = guiCreateLabel(101, 136, 84, 17, "", false, GUIEditor.staticimage[1]) guiSetFont(GUIEditor.label[8], "default-bold-small") GUIEditor.label[9] = guiCreateLabel(91, 163, 84, 17, "", false, GUIEditor.staticimage[1]) guiSetFont(GUIEditor.label[9], "default-bold-small") GUIEditor.label[10] = guiCreateLabel(21, 479, 44, 15, "--/--/--", false, GUIEditor.staticimage[1]) guiSetFont(GUIEditor.label[10], "default-bold-small") GUIEditor.label[11] = guiCreateLabel(21, 450, 49, 15, "00:00:00", false, GUIEditor.staticimage[1]) guiSetFont(GUIEditor.label[11], "default-bold-small") GUIEditor.label[12] = guiCreateLabel(5, 413, 469, 15, "___________________________________________________________________________________________", false, GUIEditor.staticimage[1]) guiSetFont(GUIEditor.label[12], "default-bold-small")
  15. Hey guys, ye i know it's silly the problem i got right now, but still i need some1 who knows, help. This is the error screen, of my gui. btw, u can't see last error words they are " (a nil value) " and all i get my first image, i'm using 2 for this gui, and none of my labels coming up in the image either.. GUIEditor.staticimage[2] = guiCreateStaticImage(0, -5, 550, 40, "tab.png", false, GUIEditor.staticimage[1]) This is the line that has this error, but idk if it's real or... coz i done gui in guieditor, and didn't added any function yet, but still my gui isn't loading.. btw " i'm doing gui on staticimage for the first time, meybe i must to change something.. or? " Thanks fellas.
×
×
  • Create New...