Teqskater Posted May 18, 2008 Share Posted May 18, 2008 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
Teqskater Posted May 18, 2008 Author Share Posted May 18, 2008 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
robhol Posted May 19, 2008 Share Posted May 19, 2008 I have to admit, i'm not completely sure about this, but try putting the slashes the other way-- not \, but /? Link to comment
robhol Posted May 19, 2008 Share Posted May 19, 2008 I have to admit, i'm not completely sure about this, but try putting the slashes the other way-- not \, but /? Link to comment
Teqskater Posted May 19, 2008 Author Share Posted May 19, 2008 i tryed that. didnt work. Link to comment
Teqskater Posted May 19, 2008 Author Share Posted May 19, 2008 i tryed that. didnt work. Link to comment
50p Posted May 20, 2008 Share Posted May 20, 2008 It can be. <file src="images/0.png" /> or <file src="images\\0.png" /> Link to comment
50p Posted May 20, 2008 Share Posted May 20, 2008 It can be. src="images/0.png" /> or src="images\\0.png" /> Link to comment
Brophy Posted May 20, 2008 Share Posted May 20, 2008 you can use subdirectories for files, ive used it multiple times this worked for me <file src="client/player_skins/0.png" /> Link to comment
Brophy Posted May 20, 2008 Share Posted May 20, 2008 you can use subdirectories for files, ive used it multiple times this worked for me src="client/player_skins/0.png" /> Link to comment
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