Jump to content

مطلوب فنكشن تيم


Recommended Posts

السلام عليكم

مطلوب فنشكن تيم

بدي اول ما يغير تيم اسمه يتغير بل قريد ليست

اول ما يصير تيم جديد يتغير ينضاف تلقائي بل قريد ليست

وفقط وشكرا

Link to comment
سوي تايمر وحدث الجريد ليست وضيف التيمات
setTimer 
guiGridListClear 

بس ما في حدث اسمه اول ما تغير اسم التيم

او اول ما تضيف تيم

او اول ما تحذف تيم

؟؟

شو اعمل

Link to comment

شوف

امتلمة من ويكي

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
شوف

امتلمة من ويكي

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

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