ErHaBe Posted July 14, 2016 Share Posted July 14, 2016 السلام عليكم انا عملت بروجريسس بار طب انا عملتها وكل شي بس فيه مشكله هي لما اضغط على البوتون لي يشغل البروجريسس اكثر من مره يعلق البروجريسس ويصير يعبي كل مره بدي حل Link to comment
فاّرس Posted July 14, 2016 Share Posted July 14, 2016 انت مسوي تحقق انه اذا وصل 100 يوقف؟ Link to comment
ErHaBe Posted July 14, 2016 Author Share Posted July 14, 2016 لا اذا وصل 100 يعيد من جديد اما المشكله هي انه اذا ضغط اكثر من مره على البوتون الي يشغل البروجريسس يخرب البروجريسس يصير لحاله يعبي Link to comment
ErHaBe Posted July 14, 2016 Author Share Posted July 14, 2016 شباب شو المشكله unexpected symbol near ',' سطر 14 addEventHandler("onClientGUIClick", resourceRoot, function () if source == b2 then progTimer = setTimer(function () if guiProgressBarGetProgress (pro2)< 100 then guiProgressBarSetProgress(pro2, guiProgressBarGetProgress (pro2) + 10 ) if ( guiGetEnabled ( b2 ) == true ) then guiSetEnabled ( b2, false ) else guiSetEnabled ( b2, true ) killTimer(progTimer ) setElementData(resourceRoot, "ResourceAdminMessag", text, true) end end, 100, 0) end end Link to comment
#Soking Posted July 14, 2016 Share Posted July 14, 2016 addEventHandler("onClientGUIClick", b2, function ( ) if ( isTimer( progTimer ) ) then killTimer ( progTimer ) end if ( Progress_ < 100 ) then guiProgressBarSetProgress(pro2, Progress_+ 10 ) else guiProgressBarSetProgress(pro2, 0 ) end local Progress_ = guiProgressBarGetProgress ( pro2 ) progTimer = setTimer( function ( ) guiSetEnabled ( b2, not guiGetEnabled ( b2 ) ) killTimer( progTimer ) setElementData(resourceRoot, "ResourceAdminMessag", text, true) end, 100, 0) end , false ) Link to comment
!#NssoR_) Posted July 14, 2016 Share Posted July 14, 2016 addEventHandler("onClientGUIClick", resourceRoot, function () if ( source == b2 ) then if ( isTimer(progTimer) ) then return end progTimer = setTimer(function () guiProgressBarSetProgress(pro2, guiProgressBarGetProgress (pro2) + 10 ) if ( guiProgressBarGetProgress (pro2) >= 100 ) then if ( guiGetEnabled ( b2 ) == true ) then guiSetEnabled ( b2, false ) else guiSetEnabled ( b2, true ) setElementData(resourceRoot, "ResourceAdminMessag", text, true) end killTimer(progTimer ) end end, 100, 0) end end) Link to comment
ErHaBe Posted July 14, 2016 Author Share Posted July 14, 2016 شكرا لكم بس انا عندي لوحه تسجيل كيف بدي اعمل ان اول ما يخلص البروجريسس يصير الحدث انه يسجل Link to comment
فاّرس Posted July 14, 2016 Share Posted July 14, 2016 داخل التحقق حط تريقر للسيرفر وخلاص. Link to comment
ErHaBe Posted July 15, 2016 Author Share Posted July 15, 2016 داخل التحقق حط تريقر للسيرفر وخلاص. ما فهمت وضح ؟ Link to comment
' A F . Posted July 15, 2016 Share Posted July 15, 2016 حط بـ كودك يوم يوصل البروجريسس 100 استخدم triggerServerEvent 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