Jump to content

Label


Recommended Posts

GUIEditor = { 
    label = {}, 
} 
GUIEditor.label[1] = guiCreateLabel(190, 499, 481, 61, "TeSt 1", false) 
GUIEditor.label[2] = guiCreateLabel(190, 499, 481, 61, "TeSt 2", false) 
  
guiSetVisible(GUIEditor.label[1], false) 
guiSetVisible(GUIEditor.label[2], false) 
  
show1 = function() 
guiSetVisible(GUIEditor.label[1], true) 
setTimer( 
function() 
guiSetVisible(GUIEditor.label[1], false) 
end,1000,1) 
end 
  
show2 = function() 
guiSetVisible(GUIEditor.label[2], true) 
setTimer( 
function() 
guiSetVisible(GUIEditor.label[2], false) 
end,2000,1) 
end 
  
onRender = function() 
if (guiGetVisible(GUIEditor.label[1]) == false) then 
show2() 
elseif (guiGetVisible(GUIEditor.label[2]) == false) then 
show1() 
   end 
end 
addEventHandler ( "onClientRender", root, onRender ) 

وين الخطأ هنآ ؟ :roll:

Link to comment
GUIEditor = { 
    label = {}, 
} 
GUIEditor.label[1] = guiCreateLabel(190, 499, 481, 61, "TeSt 1", false) 
GUIEditor.label[2] = guiCreateLabel(190, 499, 481, 61, "TeSt 2", false) 
  
guiSetVisible(GUIEditor.label[1], false) 
guiSetVisible(GUIEditor.label[2], false) 
  
show1 = function() 
guiSetVisible(GUIEditor.label[1], true) 
setTimer( 
function() 
guiSetVisible(GUIEditor.label[1], false) 
end,1000,1) 
end 
  
show2 = function() 
guiSetVisible(GUIEditor.label[2], true) 
setTimer( 
function() 
guiSetVisible(GUIEditor.label[2], false) 
end,2000,1) 
end 
  
onRender = function() 
if (guiGetVisible(GUIEditor.label[1]) == true) then 
show2() 
elseif (guiGetVisible(GUIEditor.label[2]) == false) then 
show1() 
   end 
end 
addEventHandler ( "onClientRender", root, onRender ) 

Link to comment
GUIEditor = { 
    label = {} 
} 
GUIEditor.label[1] = guiCreateLabel(190, 499, 481, 61, "TeSt 1", false) 
GUIEditor.label[2] = guiCreateLabel(190, 499, 481, 61, "TeSt 2", false) 
  
guiSetVisible(GUIEditor.label[1], false) 
guiSetVisible(GUIEditor.label[2], false) 
  
show1 = function() 
guiSetVisible(GUIEditor.label[1], true) 
setTimer( 
function() 
guiSetVisible(GUIEditor.label[1], false) 
end,1000,1) 
end 
  
show2 = function() 
guiSetVisible(GUIEditor.label[2], true) 
setTimer( 
function() 
guiSetVisible(GUIEditor.label[2], false) 
end,2000,1) 
end 
  
onRender = function() 
if (guiGetVisible(GUIEditor.label[1]) == false) then 
show2() 
elseif (guiGetVisible(GUIEditor.label[2]) == false) then 
show1() 
   end 
end 
addEventHandler ( "onClientRender", root, onRender ) 

Link to comment
استخدم,
math.random 
guiSetText 
setTimer 

حآول تسويهه, لان عنآد حط قآنون مآ نعطي آحد اكواد جاهزه لين يحاول

اصلاً هو ما قال وش يبي بالظبت, كاتب باسم لموضوع

"Label"

وكاتب بالموضوع

"وش الخطاء هنا"

وش فهمت منه؟ ..

رايباك, ياليت توضحلنا وش تبي

Link to comment
استخدم,
math.random 
guiSetText 
setTimer 

حآول تسويهه, لان عنآد حط قآنون مآ نعطي آحد اكواد جاهزه لين يحاول

اصلاً هو ما قال وش يبي بالظبت, كاتب باسم لموضوع

"Label"

وكاتب بالموضوع

"وش الخطاء هنا"

وش فهمت منه؟ ..

رايباك, ياليت توضحلنا وش تبي

@ضضآوي كودك م اشتغل = ( ،

جعفر كودك ششغآل بس المشكلةة وحدةة تتحرك و وحدةة وآققفةة ما تتحرك

@رآي بآك

سو الي قلت لك فوق,,

طبعآ الي عطيتك راح تصير كذآ

TeSt 2 وعلطول يتحول لـ TeSt 1

يعني ينزل تنآزليآ ويمديك تخليها العكس -_-

Link to comment

@رآي بآك

سو الي قلت لك فوق,,

طبعآ الي عطيتك راح تصير كذآ

TeSt 2 وعلطول يتحول لـ TeSt 1

يعني ينزل تنآزليآ ويمديك تخليها العكس -_-

!! ينزل تنآزلياً :lol:

تنآزليآ مو معنآه من الرقم الكبير الى الصغير ولا انا غلطآن ؟

8)

Link to comment

لم يتم التجربة ..

GUIEditor = { 
    label = {}, 
} 
GUIEditor.label[1] = guiCreateLabel(190, 499, 481, 61, "TeSt 1", false) 
GUIEditor.label[2] = guiCreateLabel(190, 499, 481, 61, "TeSt 2", false) 
  
guiSetVisible(GUIEditor.label[1], false) 
guiSetVisible(GUIEditor.label[2], false) 
  
show1 = function() 
    if guiGetVisible ( GUIEditor.label[2] ) then 
        guiSetVisible ( GUIEditor.label[2], false ) 
    end 
    guiSetVisible ( GUIEditor.label[1], true ) 
end 
  
show2 = function  () 
    if guiGetVisible ( GUIEditor.label[1] ) then 
        guiSetVisible ( GUIEditor.label[1], false ) 
    end 
    guiSetVisible ( GUIEditor.label[2], true ) 
    setTimer ( show1, 15000, 1 ) 
end 
setTimer ( show2, 30000, 0 ) 

Link to comment

^ عناد يقدر يختصرهآ كذآ

GUIEditor = { 
    label = {}, 
} 
GUIEditor.label[1] = guiCreateLabel(190, 499, 481, 61, "TeSt 1", false) 
GUIEditor.label[2] = guiCreateLabel(190, 499, 481, 61, "TeSt 2", false) 
  
guiSetVisible(GUIEditor.label[1], false) 
timer = 0 
setTimer( 
    function( ) 
        timer = ( timer + 1 ) 
        guiSetText( GUIEditor.label[2], 'TeSt '.. math.random( '1', timer ) ) 
        if ( timer == 1 ) then 
        end 
    end, 700, 1 
) 

Link to comment
^ عناد يقدر يختصرهآ كذآ
GUIEditor = { 
    label = {}, 
} 
GUIEditor.label[1] = guiCreateLabel(190, 499, 481, 61, "TeSt 1", false) 
GUIEditor.label[2] = guiCreateLabel(190, 499, 481, 61, "TeSt 2", false) 
  
guiSetVisible(GUIEditor.label[1], false) 
timer = 0 
setTimer( 
    function( ) 
        timer = ( timer + 1 ) 
        guiSetText( GUIEditor.label[2], 'TeSt '.. math.random( '1', timer ) ) 
        if ( timer == 1 ) then 
        end 
    end, 700, 1 
) 

كودكـ بـيثبت على الـ التكست :/

Link to comment
تيتي #

بغيت مثلآ ,

تطلع تست 1

وتختففي لمدةة وتجي تست 2

وبعدهآ تختفي تست 2 وتجي تست 1

وتسسذآ

وشش إسستخدمم ؟

^ عناد يقدر يختصرهآ كذآ
GUIEditor = { 
    label = {}, 
} 
GUIEditor.label[1] = guiCreateLabel(190, 499, 481, 61, "TeSt 1", false) 
GUIEditor.label[2] = guiCreateLabel(190, 499, 481, 61, "TeSt 2", false) 
  
guiSetVisible(GUIEditor.label[1], false) 
timer = 0 
setTimer( 
    function( ) 
        timer = ( timer + 1 ) 
        guiSetText( GUIEditor.label[2], 'TeSt '.. math.random( '1', timer ) ) 
        if ( timer == 1 ) then 
        end 
    end, 700, 1 
) 

ماشوفه قال يبي شيء اسمه

guiSetText

كل الموضوع إظهار وإخفاء ..

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