Maksoud Posted June 3, 2016 Share Posted June 3, 2016 السلام عليكم و رحمة الله و بركاته عايز كود يجيب تاريخ ضغط الزر يعنى لما اضغط على زر يجيب التاريخ باليوم و الشهر و السنة Link to comment
!#NssoR_) Posted June 3, 2016 Share Posted June 3, 2016 onClientGUIClick-- لما يضغط الزر getRealTime -- يجيب الوقت Link to comment
Maksoud Posted June 3, 2016 Author Share Posted June 3, 2016 هات محاولتك وبصلحها لك guiGridListSetItemText(gridd,Roww,DateColumn,getRealTime(),false,false) Link to comment
' A F . Posted June 3, 2016 Share Posted June 3, 2016 تفضل addEventHandler("onClientResourceStart", resourceRoot, function() Name = guiCreateButton(243, 298, 114, 23, "Name", false) guiSetProperty(Name, "NormalTextColour", "FFAAAAAA") end ) addEventHandler("onClientGUIClick",root, function ( ) if ( getElementType ( source ) == "gui-button" ) then local TheTime = getRealTime ( ) setElementData ( source , "TimeClicked" , {TheTime["hour"],TheTime["minute"],TheTime["second"]} ) end end ) addCommandHandler("gcb", function ( ) local Data = getElementData ( Name , "TimeClicked" ) if ( Data ) then outputChatBox(Data[1]..":"..Data[2]..":"..Data[3]) end end ) Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now