MrKAREEM Posted February 6, 2018 Share Posted February 6, 2018 السلام عليكم شباب كنت ابي مساعدة صغيرة في سكربت التذكير بمواعيد الآذان حاليا انا كنت عملت موضوع بالانجليزي عن احضار التوقيت الحقيقي وساعدني الاخ neux المهم يا شباب انا ظبط الكود بس ما اشتغل فأبي انه يظبط ارجو الرد في اسرع وقت واجد حل وهذا هو الكود :- function MrKAREEM () local time = getRealTime () local hours = time.hour local minutes = time.minute if hours == 12 and minute == 30 then outputChatBox ( "حان موعد اذان الظهر", 255, 0, 0, true ) elseif if hours == 4 and minute == 10 then outputChatBox ( "حان موعد اذان العصر", 255, 0, 0, true ) elseif if hours == 6 and minute == 00 then outputChatBox ( "حان موعد اذان المغرب", 255, 0, 0, true ) elseif if hours == 7 and minute == 25 then outputChatBox ( "حان موعد اذان العشاء", 255, 0, 0, true ) end end Link to comment
ÆBKV Posted February 6, 2018 Share Posted February 6, 2018 if hours == 12 and minutes == 30 elseif hours == 4 and minutes == 10 do this all like this Link to comment
NeXuS™ Posted February 7, 2018 Share Posted February 7, 2018 And start posting in the right section or start using the right language. Link to comment
MrKAREEM Posted February 7, 2018 Author Share Posted February 7, 2018 13 hours ago, ÆBKV said: if hours == 12 and minutes == 30 elseif hours == 4 and minutes == 10 do this all like this ok i edite it is it true now ? function MrKAREEM () local time = getRealTime () local hours = time.hour local minutes = time.minute if hours == 12 and minutes == 30 outputChatBox ( "حان موعد اذان الظهر", 255, 0, 0, true ) elseif hours == 4 and minutes == 10 outputChatBox ( "حان موعد اذان العصر", 255, 0, 0, true ) elseif hours == 6 and minutes == 00 outputChatBox ( "حان موعد اذان المغرب", 255, 0, 0, true ) elseif hours == 7 and minute == 25 outputChatBox ( "حان موعد اذان العشاء", 255, 0, 0, true ) end end Link to comment
MrKAREEM Posted February 7, 2018 Author Share Posted February 7, 2018 14 hours ago, NeXuS™ said: And start posting in the right section or start using the right language. this posting as is there any arabian help me and when i said neux i said u help me in the previous english post and thanks for help Link to comment
ÆBKV Posted February 7, 2018 Share Posted February 7, 2018 Don't forget "then". if hours == 12 and minutes == 30 then elseif hours == 4 and minutes == 10 then Link to comment
MrKAREEM Posted February 8, 2018 Author Share Posted February 8, 2018 14 hours ago, ÆBKV said: Don't forget "then". if hours == 12 and minutes == 30 then elseif hours == 4 and minutes == 10 then Thnx Pro It Works Now Link to comment
MrKAREEM Posted February 15, 2018 Author Share Posted February 15, 2018 On ٧/٢/٢٠١٨ at 23:44, ÆBKV said: Don't forget "then". if hours == 12 and minutes == 30 then elseif hours == 4 and minutes == 10 then I Make An Edite But It Doesnot Work The Debug Said That : ERROR: Loading script failed: azanMrKAREEM/Client.lua:12: unexpected symbol near ' And Its The Codes function MrKAREEM() local time = getRealTime () local hours = time.hour local minutes = time.minute if hours == 15 and minute == 16 then sound = playSound("Azan.mp3") outputChatBox ( "حان موعد اذان الظهر",255, 0, 0, true ) elseif hours == 4 and minutes == 10 then outputChatBox ( "حان موعد اذان العصر",255, 0, 0, true ) sound = playSound("Azan.mp3") end end addEventHandler( "onClientRender" , rootElement , MrKAREEM ) Whats The Wrong ? Link to comment
gamerxx Posted March 30, 2018 Share Posted March 30, 2018 function Gamerxx() local time = getRealTime () local hours = time.hour local minutes = time.minute if hours == 15 and minutes == 16 then sound = playSound("Azan.mp3") outputChatBox("حان موعد اذان الظهر",255, 0, 0, true) elseif hours == 4 and minutes == 10 then sound = playSound("Azan.mp3") outputChatBox("حان موعد اذان العصر",255, 0, 0, true) end end addEventHandler("onClientRender", root, Gamerxx) 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