Jump to content

getRealTime


Recommended Posts

سلام عليكم

عندي استفسارين هنا

1 -

لو واحد سعودي كتب بيكون عنده الساعة 8 ونص , ولو واحد مصري كتب بيكون عنده الساعة 7 ونص

ولا كيف , الفكرة حقت الكود تعتمد علي وش ؟ 

2 -

كيف اخلي الساعات تيجي بدون 22:3

يعني مثلا ابيها تيجي الساعة 10 ما تيجي 22

انقص 12 بس  من الساعات ؟


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
		local Min = Realtime.minute
		local sec = Realtime.second
		outputChatBox("Time Now : ["..year.."/"..month.."|"..hour..":"..Min.."]",source,0,255,0,true)
	end
)

 

Edited by Mr.Mostafa
Link to comment
22 minutes ago, Simple. said:

إذا استخدمت الفنكشن في السيرفر سايد يجيب لك الوقت حق السيرفر

واذا استخدمته كلنت يجيب لك الوقت حق جهاز اللاعب

 

والوقت حق السيرفر هادا يجي منين ولا كيف اظبطه؟

Link to comment
1 minute ago, salh said:

انت تبي وقت الاعب في الحقيقه ولا وقت السيرفر؟

ابي اجيب وقت محدد للكل , عشان ابي لما المغرب بتوقيت السعودية ياذن يسوي شي

Edited by Mr.Mostafa
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...