Jump to content

مشكله بسيطه


Recommended Posts

سلام عليكم

كنت قاعد اسوي مود لرمضان ف واجهتني مشكله

ابي الصوره تيجي بعد التيمير هذا 10000 وبعدين تختفي بعد ثواني من ظهورها

التيمير = timer

  
addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), function() 
    -- little interval, music is getting laggy when all resources are starting.. 
    setTimer(function() 
        kemo = guiCreateStaticImage ( 0,0,799,599, "kemo.png", true ) 
    end, 10000, 1) 
end 
) 

وشكرا

Link to comment
local x,y = guiGetScreenSize () 
local kemo = guiCreateStaticImage ( 0, 0, x, y, "kemo.png", false ) 
  
function onStart() 
    setTimer( function() guiSetVisible ( kemo, false ) end, 10000, 1 ) 
end 
addEventHandler( "onClientResourceStart", getResourceRootElement(), onStart ) 

Link to comment
  
kemo = guiCreateStaticImage ( 0,0,799,599, "kemo.png", true ) 
guiSetVisible(kemo ,false) 
setTimer(guiSetVisible,10 * 1000,1,kemo ,true) 
setTimer(guiSetVisible,15 * 1000,1,kemo ,false) 
  

relative: This is whether sizes and positioning are relative. If this is true, then all x,y,width,height floats must be between 0 and 1, representing measures relative to the parent.

  
kemo = guiCreateStaticImage ( 0,0,799,599, "kemo.png", false ) 
guiSetVisible(kemo ,false) 
setTimer(guiSetVisible,10 * 1000,1,kemo ,true) 
setTimer(guiSetVisible,15 * 1000,1,kemo ,false) 
  

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