TheIceman1 Posted February 23, 2013 Posted February 23, 2013 Why this aint loading? capturingtimer = setTimer ( getturf, 10000, 1, playerSource ) guiProgressBarSetProgress(GUIEditor_Progress[1], tonumber(capturingtimer))
Anderl Posted February 23, 2013 Posted February 23, 2013 Your code does not make sense, you're trying to convert a timer to a number.
iPrestege Posted February 23, 2013 Posted February 23, 2013 setTimer (guiProgressBarSetProgress,10000,1,GUIEditor_Progress[1],progress) Does That What You Want ? You should use it in function .
TheIceman1 Posted February 23, 2013 Author 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.
TheIceman1 Posted February 23, 2013 Author 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 )
iPrestege Posted February 23, 2013 Posted February 23, 2013 You Have To Edit The "progress" 0 - 100 As What I Know .
iPrestege Posted February 23, 2013 Posted February 23, 2013 i think that you wan't it same download progressbar?
TheIceman1 Posted February 23, 2013 Author Posted February 23, 2013 i think that you wan't it same download progressbar? Yes
iPrestege Posted February 23, 2013 Posted February 23, 2013 guiProgressBarSetProgress(GUIEditor_Progress[1],0) setTimer (guiProgressBarSetProgress,10000,1,GUIEditor_Progress[1],guiProgressBarGetProgress(GUIEditor_Progress[1]) + 1) Try it .
TheIceman1 Posted February 23, 2013 Author 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.
iPrestege Posted February 23, 2013 Posted February 23, 2013 guiProgressBarSetProgress(GUIEditor_Progress[1],0) setTimer(function() guiProgressBarSetProgress(GUIEditor_Progress[1],guiProgressBarGetProgress(GUIEditor_Progress[1])+1) end,10000,100)
TheIceman1 Posted February 23, 2013 Author 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
iPrestege Posted February 23, 2013 Posted February 23, 2013 No that's should work add 1% from 100% every 10 seconds!
TheIceman1 Posted February 23, 2013 Author Posted February 23, 2013 No that's should work add 1% from 100% every 10 seconds! Fixed.
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