Jump to content

Static image - Not loading.


LukisLT

Recommended Posts

Hey guys, ye i know it's silly the problem i got right now, but still i need some1 who knows, help.

screen-error.png

This is the error screen, of my gui. btw, u can't see last error words they are " (a nil value) " and all i get my first image, i'm using 2 for this gui, and none of my labels coming up in the image either..

GUIEditor.staticimage[2] = guiCreateStaticImage(0, -5, 550, 40, "tab.png", false, GUIEditor.staticimage[1]) 

This is the line that has this error, but idk if it's real or... coz i done gui in guieditor, and didn't added any function yet, but still my gui isn't loading.. btw " i'm doing gui on staticimage for the first time, meybe i must to change something.. or? "

Thanks fellas.

Link to comment

Ofc not.. here it is :

GUIEditor = { 
    staticimage = {}, 
    label = {}, 
} 
GUIEditor.staticimage[1] = guiCreateStaticImage(433, 215, 479, 521, "bgr.png", false) 
  
GUIEditor.staticimage[2] = guiCreateStaticImage(0, -5, 550, 40, "tab.png", false, GUIEditor.staticimage[1]) 
  
GUIEditor.label[1] = guiCreateLabel(176, 14, 99, 15, "Info Panel - BETA", false, GUIEditor.staticimage[2]) 
guiSetFont(GUIEditor.label[1], "default-bold-small") 
guiLabelSetColor(GUIEditor.label[1], 9, 200, 13) 
  
GUIEditor.label[2] = guiCreateLabel(27, 82, 84, 17, "Nick In-Game :", false, GUIEditor.staticimage[1]) 
guiSetFont(GUIEditor.label[2], "default-bold-small") 
GUIEditor.label[3] = guiCreateLabel(27, 109, 84, 17, "Serial :", false, GUIEditor.staticimage[1]) 
guiSetFont(GUIEditor.label[3], "default-bold-small") 
GUIEditor.label[4] = guiCreateLabel(27, 136, 84, 17, "Location :", false, GUIEditor.staticimage[1]) 
guiSetFont(GUIEditor.label[4], "default-bold-small") 
GUIEditor.label[5] = guiCreateLabel(27, 163, 84, 17, "Money :", false, GUIEditor.staticimage[1]) 
guiSetFont(GUIEditor.label[5], "default-bold-small") 
GUIEditor.label[6] = guiCreateLabel(130, 82, 84, 17, "", false, GUIEditor.staticimage[1]) 
guiSetFont(GUIEditor.label[6], "default-bold-small") 
GUIEditor.label[7] = guiCreateLabel(80, 109, 84, 17, "", false, GUIEditor.staticimage[1]) 
guiSetFont(GUIEditor.label[7], "default-bold-small") 
GUIEditor.label[8] = guiCreateLabel(101, 136, 84, 17, "", false, GUIEditor.staticimage[1]) 
guiSetFont(GUIEditor.label[8], "default-bold-small") 
GUIEditor.label[9] = guiCreateLabel(91, 163, 84, 17, "", false, GUIEditor.staticimage[1]) 
guiSetFont(GUIEditor.label[9], "default-bold-small") 
GUIEditor.label[10] = guiCreateLabel(21, 479, 44, 15, "--/--/--", false, GUIEditor.staticimage[1]) 
guiSetFont(GUIEditor.label[10], "default-bold-small") 
GUIEditor.label[11] = guiCreateLabel(21, 450, 49, 15, "00:00:00", false, GUIEditor.staticimage[1]) 
guiSetFont(GUIEditor.label[11], "default-bold-small") 
GUIEditor.label[12] = guiCreateLabel(5, 413, 469, 15, "___________________________________________________________________________________________", false, GUIEditor.staticimage[1]) 
guiSetFont(GUIEditor.label[12], "default-bold-small") 
  

Link to comment

Thanks for help, i was on my local to, and it's actually worked, after i restarted server. idk how's that posible, thanks for help anyway, gui fixed ~> functions added.. Readdy to work in some server ^_^:)

EDIT : i use this line, to get player name to the gui

guiSetText ( GUIEditor.label[6], getPlayerName ( localPlayer ) ) 

but i would like to make it color coded, is here anyway i could do that?

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