TheIceman1 Posted February 23, 2013 Share Posted February 23, 2013 Why this aint loading? capturingtimer = setTimer ( getturf, 10000, 1, playerSource ) guiProgressBarSetProgress(GUIEditor_Progress[1], tonumber(capturingtimer)) Link to comment
Anderl Posted February 23, 2013 Share Posted February 23, 2013 Your code does not make sense, you're trying to convert a timer to a number. Link to comment
iPrestege Posted February 23, 2013 Share Posted February 23, 2013 setTimer (guiProgressBarSetProgress,10000,1,GUIEditor_Progress[1],progress) Does That What You Want ? You should use it in function . Link to comment
TheIceman1 Posted February 23, 2013 Author Share Posted February 23, 2013 setTimer (guiProgressBarSetProgress,10000,1,GUIEditor_Progress[1],progress) Does That What You Want ? You should use it in function . Nothing happens. Link to comment
TheIceman1 Posted February 23, 2013 Author Share Posted February 23, 2013 Its full code. function progress() guiSetVisible ( GUIEditor_Progress[1], false ) guiSetVisible ( GUIEditor_Label[1], false ) end function enterturf (playerSource) guiSetVisible ( GUIEditor_Progress[1], true ) guiSetVisible ( GUIEditor_Label[1], true ) capturingtimer = setTimer (guiProgressBarSetProgress,10000,1,GUIEditor_Progress[1],progress) end addEvent ( "enterturf", true ) addEventHandler ( "enterturf", root, enterturf ) Link to comment
iPrestege Posted February 23, 2013 Share Posted February 23, 2013 You Have To Edit The "progress" 0 - 100 As What I Know . Link to comment
TheIceman1 Posted February 23, 2013 Author Share Posted February 23, 2013 That's not what I'm looking for Link to comment
iPrestege Posted February 23, 2013 Share Posted February 23, 2013 i think that you wan't it same download progressbar? Link to comment
TheIceman1 Posted February 23, 2013 Author Share Posted February 23, 2013 i think that you wan't it same download progressbar? Yes Link to comment
iPrestege Posted February 23, 2013 Share Posted February 23, 2013 guiProgressBarSetProgress(GUIEditor_Progress[1],0) setTimer (guiProgressBarSetProgress,10000,1,GUIEditor_Progress[1],guiProgressBarGetProgress(GUIEditor_Progress[1]) + 1) Try it . Link to comment
TheIceman1 Posted February 23, 2013 Author Share Posted February 23, 2013 guiProgressBarSetProgress(GUIEditor_Progress[1],0) setTimer (guiProgressBarSetProgress,10000,1,GUIEditor_Progress[1],guiProgressBarGetProgress(GUIEditor_Progress[1]) + 1) Try it . Dont work. Link to comment
iPrestege Posted February 23, 2013 Share Posted February 23, 2013 guiProgressBarSetProgress(GUIEditor_Progress[1],0) setTimer(function() guiProgressBarSetProgress(GUIEditor_Progress[1],guiProgressBarGetProgress(GUIEditor_Progress[1])+1) end,10000,100) Link to comment
TheIceman1 Posted February 23, 2013 Author Share Posted February 23, 2013 guiProgressBarSetProgress(GUIEditor_Progress[1],0) setTimer(function() guiProgressBarSetProgress(GUIEditor_Progress[1],guiProgressBarGetProgress(GUIEditor_Progress[1])+1) end,10000,100) Same as before Link to comment
iPrestege Posted February 23, 2013 Share Posted February 23, 2013 No that's should work add 1% from 100% every 10 seconds! Link to comment
TheIceman1 Posted February 23, 2013 Author Share Posted February 23, 2013 No that's should work add 1% from 100% every 10 seconds! Fixed. Link to comment
TheIceman1 Posted February 23, 2013 Author Share Posted February 23, 2013 Did My Code Work? Yes,thanks! Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now