FSXTim Posted May 26, 2012 Posted May 26, 2012 Hello, I have a problem with my script, but I can't find the problem. -- iPod Window -- ipod_Window = guiCreateWindow(0.0402,0.2232,0.1255,0.3046,"",true) GUIEditor_Image1 = guiCreateStaticImage(0.3942,0.8146,0.2033,0.1307,"images/ipodbutton.png",true,ipod_Window) GUIEditor_Label1 = guiCreateLabel(0.0456,0.7568,0.9087,0.0547,"_______________________________",true,ipod_Window) guiLabelSetColor(GUIEditor_Label1,0,0,0) GUIEditor_Image2 = guiCreateStaticImage(0.1867,0.155,0.2241,0.1307,"images/mp3.png",true,ipod_Window) GUIEditor_Image3 = guiCreateStaticImage(0.5851,0.155,0.2199,0.1307,"images/notizen.png",true,ipod_Window) GUIEditor_Image4 = guiCreateStaticImage(0.5768,0.5775,0.2241,0.1459,"images/zeit.png",true,ipod_Window) GUIEditor_Image5 = guiCreateStaticImage(0.5809,0.3647,0.2158,0.1398,"images/sms.png",true,ipod_Window) GUIEditor_Image6 = guiCreateStaticImage(0.195,0.3678,0.1992,0.1277,"images/finfo.png",true,ipod_Window) GUIEditor_Image7 = guiCreateStaticImage(0.1909,0.5745,0.2033,0.1368,"images/hilfe.png",true,ipod_Window) -- Allgemein -- function on_Resource_Start () guiSetVisible (ipod_Window, false) guiSetVisible (mp3_Window, false) end addEventHandler ("onClientResourceStart", getResourceRootElement(getThisResource()), on_Resource_Start) function showipod_Window () local wVis = guiGetVisible(ipod_Window) if (wVis == true) then guiSetVisible(ipod_Window, false) showCursor(false) end if (wVis == false) then guiSetVisible(ipod_Window, true) showCursor(true) end end bindKey ("i", "down", showipod_Window) Error (line 2): attempt to call global 'guiCreateWindow' (a nil value) Greets
Castillo Posted May 26, 2012 Posted May 26, 2012 Your script must be set as server side and not client side in meta.xml. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Castillo Posted May 26, 2012 Posted May 26, 2012 You didn't get me, maybe I didn't said it right. I meant that your script is server side instead of client side. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
FSXTim Posted May 26, 2012 Author Posted May 26, 2012 Okay, I added it clientside in the meta.xml now. It's working, thanks you! Greets
Castillo Posted May 26, 2012 Posted May 26, 2012 You're welcome. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
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