Sign in to follow this  
Mr.Mostafa

getRealTime - تصحيح كود

Recommended Posts

سلام عليكم

ممكن تصحيح لهادا الكود

ابي يجيب لي كام باقي والساعة تيجي 10 

addCommandHandler("tim",
	function(source)		
		local Realtime = getRealTime()
		local year = Realtime.year + 1900
		local month = Realtime.month + 1
		local day = Realtime.monthday
		local hour = Realtime.hour -12
		local Min = Realtime.minute
		local sec = Realtime.second
		outputChatBox("Time Now : ["..year.."/"..month.."|"..hour..":"..Min.."]",source,0,255,0,true)
		outputChatBox("باقي علي الساعة 10 : ".. hour-10 ..":"..Min..":"..sec.."",source,0,255,0,true)
	end
)

 

Share this post


Link to post
addCommandHandler("tim",
	function()	
		local Realtime = getRealTime()
		local year = Realtime.year + 1900
		local month = Realtime.month + 1
		local day = Realtime.monthday
		local hour = Realtime.hour -12
		local Min = Realtime.minute
		local sec = Realtime.second
		outputChatBox("Time Now : ["..year.."/"..month.."|"..hour..":"..Min.."]",source,0,255,0,true)
		outputChatBox("باقي علي الساعة 10 : ".. hour-10 ..":"..Min..":"..sec.."",source,0,255,0,true)
	end
)

 

  • Haha 1

Share this post


Link to post
1 hour ago, DABL said:

addCommandHandler("tim",
	function()	
		local Realtime = getRealTime()
		local year = Realtime.year + 1900
		local month = Realtime.month + 1
		local day = Realtime.monthday
		local hour = Realtime.hour -12
		local Min = Realtime.minute
		local sec = Realtime.second
		outputChatBox("Time Now : ["..year.."/"..month.."|"..hour..":"..Min.."]",source,0,255,0,true)
		outputChatBox("باقي علي الساعة 10 : ".. hour-10 ..":"..Min..":"..sec.."",source,0,255,0,true)
	end
)

 

 

  • Haha 2

Share this post


Link to post
5 minutes ago, KillerX said:

 

أها ما قريت الموضوع ، احسبه قال ما تظهر ض1 .

 

  • Like 1

Share this post


Link to post
2 hours ago, DABL said:

addCommandHandler("tim",
	function()	
		local Realtime = getRealTime()
		local year = Realtime.year + 1900
		local month = Realtime.month + 1
		local day = Realtime.monthday
		local hour = Realtime.hour -12
		local Min = Realtime.minute
		local sec = Realtime.second
		outputChatBox("Time Now : ["..year.."/"..month.."|"..hour..":"..Min.."]",source,0,255,0,true)
		outputChatBox("باقي علي الساعة 10 : ".. hour-10 ..":"..Min..":"..sec.."",source,0,255,0,true)
	end
)

 

نفس كودي ض1

Share this post


Link to post
Guest
This topic is now closed to further replies.
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.