ErHaBe Posted July 14, 2016 Share Posted July 14, 2016 السلام عليكم مطلوب فنشكن تيم بدي اول ما يغير تيم اسمه يتغير بل قريد ليست اول ما يصير تيم جديد يتغير ينضاف تلقائي بل قريد ليست وفقط وشكرا Link to comment
فاّرس Posted July 14, 2016 Share Posted July 14, 2016 سوي تايمر وحدث الجريد ليست وضيف التيمات setTimer guiGridListClear Link to comment
ErHaBe Posted July 14, 2016 Author Share Posted July 14, 2016 سوي تايمر وحدث الجريد ليست وضيف التيمات setTimer guiGridListClear بس ما في حدث اسمه اول ما تغير اسم التيم او اول ما تضيف تيم او اول ما تحذف تيم ؟؟ شو اعمل Link to comment
' A F . Posted July 14, 2016 Share Posted July 14, 2016 سوي تايمر وحدث الجريد ليست وضيف التيمات setTimer guiGridListClear بس ما في حدث اسمه اول ما تغير اسم التيم او اول ما تضيف تيم او اول ما تحذف تيم ؟؟ شو اعمل onElementDestroy Link to comment
فاّرس Posted July 14, 2016 Share Posted July 14, 2016 ماراح تحتاج حدث او اي شي, كل اللي تحتاجه قلت لك فوق. Link to comment
ErHaBe Posted July 14, 2016 Author Share Posted July 14, 2016 ماراح تحتاج حدث او اي شي, كل اللي تحتاجه قلت لك فوق. اما كيف استعمل الفنكشات ؟ قلي بظبط كيف بستعملهم Link to comment
Dr.Marco Posted July 14, 2016 Share Posted July 14, 2016 شوف امتلمة من ويكي SetTimer function mainFunction() outputChatBox ("Instant text!") setTimer ( function() outputChatBox ( "5 second delay text!" ) end, 5000, 1 ) end mainFunction() --call function =========== guiGridListClear ====== function clientsideResourceStart () -- Create the grid list element local testList = guiCreateGridList ( 0.45, 0.45, 0.15, 0.15, true ) -- Create a column in the list and add 2 rows displaying "Hello" text and "world" text local column = guiGridListAddColumn( testList, "test", 0.85 ) guiGridListSetItemText ( testList, guiGridListAddRow ( testList ), column, "Hello", false, false ) guiGridListSetItemText ( testList, guiGridListAddRow ( testList ), column, "World", false, false ) -- Set a timer to call the guiGridListClear function to clear the grid list items in 5 seconds setTimer ( guiGridListClear, 5000, 1, testList ) end addEventHandler ( "onClientResourceStart", resourceRoot, clientsideResourceStart ) Link to comment
ErHaBe Posted July 14, 2016 Author Share Posted July 14, 2016 شوف امتلمة من ويكي SetTimer function mainFunction() outputChatBox ("Instant text!") setTimer ( function() outputChatBox ( "5 second delay text!" ) end, 5000, 1 ) end mainFunction() --call function =========== خلاص عملته من قبل شكرا لكم وشكرا لكل الي فادوني وطريقه Sha67 تمت الافاده مشكورين الكل guiGridListClear ====== function clientsideResourceStart () -- Create the grid list element local testList = guiCreateGridList ( 0.45, 0.45, 0.15, 0.15, true ) -- Create a column in the list and add 2 rows displaying "Hello" text and "world" text local column = guiGridListAddColumn( testList, "test", 0.85 ) guiGridListSetItemText ( testList, guiGridListAddRow ( testList ), column, "Hello", false, false ) guiGridListSetItemText ( testList, guiGridListAddRow ( testList ), column, "World", false, false ) -- Set a timer to call the guiGridListClear function to clear the grid list items in 5 seconds setTimer ( guiGridListClear, 5000, 1, testList ) end addEventHandler ( "onClientResourceStart", resourceRoot, clientsideResourceStart ) 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