Jump to content

guiCreateStaticImage problems


Recommended Posts

The image won't display.

code used:

x = 0.07 
y = 0.07 
breedte = 0.68 
hoogte = 0.96 
status = guiCreateStaticImage(x, y, breedte, hoogte, "client\player_skins\0.png", true, registratiescherm) 

some translations:

breedte means is dutch for width

hoogte means is dutch for height

and registratiescherm is dutch for registrationscreen

meta.xml:

<meta> 
    <info author="Teqskater" type="gamemode" name="Teqskater's Server" description="Scripting Practice Server" /> 
    <script src="server\gamemode.lua" type = "server"/> 
    <script src="client\gui.lua" type = "client"/> 
    <file src="client\player_skins\0.png" /> 
        etc... 

The resource's foldername = Teqserv

in folder Teqserv are 2 folders named client and server

in the folder client is another folder with the name player_skins

in that folder are player skin images and there is an image file 0.png and more image files.

What's wrong?

EDIT#1:

it only works for me right now when i use this code:

code:

 <file src="0.png" /> 

meta.xml:

<file src="0.png" /> 

and ofcourse the image '0.png' in the root folder.

can't it be done like i tryed in the first method?

Link to comment

The image won't display.

code used:

x = 0.07y = 0.07breedte = 0.68hoogte = 0.96status = guiCreateStaticImage(x, y, breedte, hoogte, "client\player_skins\0.png", true, registratiescherm)

some translations:

breedte means is dutch for width

hoogte means is dutch for height

and registratiescherm is dutch for registrationscreen

meta.xml:

                        etc...

The resource's foldername = Teqserv

in folder Teqserv are 2 folders named client and server

in the folder client is another folder with the name player_skins

in that folder are player skin images and there is an image file 0.png and more image files.

What's wrong?

EDIT#1:

it only works for me right now when i use this code:

code:

 

meta.xml:


and ofcourse the image '0.png' in the root folder.

can't it be done like i tryed in the first method?

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