Jump to content

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
)

 

Link to comment
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
)

 

Link to comment
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 1
Link to comment
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

Link to comment
  • N3xT locked this topic
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

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