Jump to content

مساعدة في مود تذكير مواعيد الآذان


MrKAREEM

Recommended Posts

السلام عليكم شباب كنت ابي مساعدة صغيرة في سكربت التذكير بمواعيد الآذان حاليا انا كنت عملت موضوع بالانجليزي عن احضار التوقيت الحقيقي 
وساعدني الاخ neux 9_9

المهم يا شباب انا ظبط الكود بس ما اشتغل فأبي انه يظبط ارجو الرد في اسرع وقت واجد حل :)
وهذا هو الكود :-

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
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 9_9 ?

 

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
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
  • 1 month later...
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...