ViRuZGamiing Posted December 28, 2013 Posted December 28, 2013 Hi, This is the first time i'm creating an image function showLoginlogo () local screenW, screenH = guiGetScreenSize() showLogo = guiCreateStaticImage ( 0, 0, screenW, ScreenH, "images/logoscreen") end addEventHandler("onClientResourceStart", getResourceRootElement( getThisResource() ), showLoginlogo ) Why doesn't this work? I want the picture to fill the screen. "If debugging is the process of removing software bugs, then programming must be the process of putting them in."
Stanley Sathler Posted December 28, 2013 Posted December 28, 2013 You didn't add the image format. Look: guiCreateStaticImage ( 0, 0, screenW, ScreenH, "images/logoscreen") The file format is missing. You should use logoscreen.png (or .jpeg, .gif, anyway, the file format). Software Engineer & Entrepreneur • Running Lustrel and VilarikA • Highly engaged on open source community
ViRuZGamiing Posted December 28, 2013 Author Posted December 28, 2013 function showLoginlogo () local screenW, screenH = guiGetScreenSize() showLogo = guiCreateStaticImage ( 0, 0, screenW, ScreenH, "images/logoscreen.png") end addEventHandler("onClientResourceStart", getResourceRootElement( getThisResource() ), showLoginlogo ) still not visible "If debugging is the process of removing software bugs, then programming must be the process of putting them in."
ViRuZGamiing Posted December 28, 2013 Author Posted December 28, 2013 Debug: expected number at 4 (screenH) "If debugging is the process of removing software bugs, then programming must be the process of putting them in."
TAPL Posted December 28, 2013 Posted December 28, 2013 local screenW, screenH = guiGetScreenSize() showLogo = guiCreateStaticImage(0, 0, screenW, screenH, "images/logoscreen.png", false)
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