shwaeki Posted January 9, 2014 Share Posted January 9, 2014 السلام عليكم و رحمة الله و بركاتة ابي كوود الوقت يعين الصبح الساعة و اليل الساعة زي يلي في لوحة الادمنية بس انا ابي الكود Link to comment
shwaeki Posted January 9, 2014 Author Share Posted January 9, 2014 مشكور اخي جعفر بس شوف وش المشكلة في هاي الاكواد addEventHandler ("onClientGUIClick", getRootElement(), function () if source == GUIEditor_Button[4] then setWeather ( 9 ) outputChatBox("تم تغير الطقص الى ضباب ) end if source == GUIEditor_Button[1] then setWeather ( 8 ) outputChatBox("تم تغير الطقس الى ماطر") end if source == GUIEditor_Button[3] then setWeather ( 0 ) outputChatBox("تم تغير الطقس الى طبيعي") end if source == GUIEditor_Button[5] then setWeather ( 19 ) outputChatBox("تم تغير الطقس الى عاصفة") end if source == GUIEditor_Button[2] then setTime( 1, 0 ) outputChatBox("الساعة الان الواحدة") end if source == GUIEditor_Button[8] then setTime( 6, 0 ) outputChatBox("الساعة الان السادسة") end if source == GUIEditor_Button[7] then setTime( 12, 0 ) outputChatBox("الساعة الان الثانية عشر") end if source == GUIEditor_Button[6] then setTime( 10, 0 ) outputChatBox("الساعة الان السادسة عشر") end end ) addEventHandler ( "onClientRender", root, function ( ) if ( guiGetVisible ( GUIEditor.window[1] ) ) then guiSetText ( GUIEditor.label[21], "Your mony: " .. getPlayerMoney ( ) ) end end ) addEventHandler("onClientGUIClick",getRootElement(), function() if ( source == GUIEditor.button[9] ) then playerNick = guiGetText(nameEdit) amount = guiGetText(amountEdit) triggerServerEvent("onSendMoney", getLocalPlayer(), playerNick, amount) end end) Link to comment
فاّرس Posted January 9, 2014 Share Posted January 9, 2014 addEventHandler ('onClientGUIClick', getRootElement(),function () if source == GUIEditor_Button[4] then setWeather ( 9 ) outputChatBox('تم تغير الطقص الى ضباب' ) elseif source == GUIEditor_Button[1] then setWeather ( 8 ) outputChatBox('تم تغير الطقس الى ماطر') elseif source == GUIEditor_Button[3] then setWeather ( 0 ) outputChatBox('تم تغير الطقس الى طبيعي') elseif source == GUIEditor_Button[5] then setWeather ( 19 ) outputChatBox('تم تغير الطقس الى عاصفة') elseif source == GUIEditor_Button[2] then setTime( 1, 0 ) outputChatBox('الساعة الان الواحدة') elseif source == GUIEditor_Button[8] then setTime( 6, 0 ) outputChatBox('الساعة الان السادسة') elseif source == GUIEditor_Button[7] then setTime( 12, 0 ) outputChatBox('الساعة الان الثانية عشر') elseif source == GUIEditor_Button[6] then setTime( 10, 0 ) outputChatBox('الساعة الان السادسة عشر') end end ) addEventHandler ( 'onClientRender', root,function ( ) if ( guiGetVisible ( GUIEditor.window[1] ) ) then guiSetText ( GUIEditor.label[21], 'Your money: ' .. getPlayerMoney ( ) ) end end ) addEventHandler('onClientGUIClick',getRootElement(),function() if ( source == GUIEditor.button[9] ) then local playerNick = guiGetText(nameEdit) local amount = guiGetText(amountEdit) triggerServerEvent('onSendMoney', localPlayer, playerNick, amount) end end ) Link to comment
shwaeki Posted January 9, 2014 Author Share Posted January 9, 2014 اخي ركبتو بس لما اعص على الز ما يصير شي Link to comment
#Al-Ha[J]aRii Posted January 9, 2014 Share Posted January 9, 2014 (edited) اخي ركبتو بس لما اعص على الز ما يصير شي addEventHandler ('onClientGUIClick', getRootElement(),function () if source == GUIEditor_Button[4] then setWeather ( 9 ) outputChatBox('تم تغير الطقص الى ضباب' ) elseif source == GUIEditor_Button[1] then setWeather ( 8 ) outputChatBox('تم تغير الطقس الى ماطر') elseif source == GUIEditor_Button[3] then setWeather ( 0 ) outputChatBox('تم تغير الطقس الى طبيعي') elseif source == GUIEditor_Button[5] then setWeather ( 19 ) outputChatBox('تم تغير الطقس الى عاصفة') elseif source == GUIEditor_Button[2] then setTime( 1, 0 ) outputChatBox('الساعة الان الواحدة') elseif source == GUIEditor_Button[8] then setTime( 6, 0 ) outputChatBox('الساعة الان السادسة') elseif source == GUIEditor_Button[7] then setTime( 12, 0 ) outputChatBox('الساعة الان الثانية عشر') elseif source == GUIEditor_Button[6] then setTime( 10, 0 ) outputChatBox('الساعة الان السادسة عشر') end end ) addEventHandler ( 'onClientRender', root,function ( ) if ( guiGetVisible ( GUIEditor.window[1] ) ) then guiSetText ( GUIEditor.label[21], 'Your money: ' .. getPlayerMoney () ) end end ) addEventHandler('onClientGUIClick',getRootElement(),function() if ( source == GUIEditor.button[9] ) then local playerNick = guiGetText(nameEdit) local amount = guiGetText(amountEdit) triggerServerEvent('onSendMoney', localPlayer, playerNick, amount) end end ) Edited January 9, 2014 by Guest Link to comment
فاّرس Posted January 9, 2014 Share Posted January 9, 2014 كيف ما يصير شيء ؟ اطرح اكوادك يمكن انك مسوي خطأ ؟؟ @ Al-Ha[J]aRii~! int getPlayerMoney ( ) Link to comment
#Al-Ha[J]aRii Posted January 9, 2014 Share Posted January 9, 2014 كيف ما يصير شيء ؟اطرح اكوادك يمكن انك مسوي خطأ ؟؟ @ Al-Ha[J]aRii~! int getPlayerMoney ( ) اوه نسيت , Link to comment
فاّرس Posted January 9, 2014 Share Posted January 9, 2014 اصلا وين الازرار وين الاديت؟ اطرح كودك كامل ذذ Link to comment
shwaeki Posted January 9, 2014 Author Share Posted January 9, 2014 اليو يومين اصمم بالوحة تقولي اطرح اكوادك اسف ما اقدر Link to comment
فاّرس Posted January 9, 2014 Share Posted January 9, 2014 اجل تقول ما يصير شيء ومدري وش , احنا وش عرفنا عنك -__- ,, واذا كانت خاصه ارسلها للي تشوفه ثقه ويعدلها لك ذذ Link to comment
shwaeki Posted January 9, 2014 Author Share Posted January 9, 2014 اوك صبر ارسلها خاص 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