Jump to content

- seconds ! [ تممت اللإفآدةة ] Thx Max+


Recommended Posts

السلآمم عليكمم

لآهنتمم وين الخخطأ هنآ ، وأنا آققول أن الخخطأ من الثوآني ( seconds )

هذآ الكود #

function showtime ( playersource ) 
    if ( playersource ) then 
    local time = getRealTime() 
    local hours = time.hour 
    local seconds = time.second 
    local minutes = time.minute 
    outputChatBox ( "Local Time: "..hours..":"..minutes.."..seconds" ) 
end 
end 
addCommandHandler ( "myTime", showtime ) 

ممكن يالححلوين تصصحيح للكود + تققولون لي وين الخططأ ؟ = ]

Edited by Guest
Link to comment

جرب ,

function time ( ) 
    local time = getRealTime () 
    local hours = time.hour 
    local minutes = time.minute 
    local seconds = time.second 
     outputChatBox ( "Local Time: "..hours..":"..minutes.. ":".. seconds.. ":") 
end 
addCommandHandler('clock', time ) 

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...