Jump to content

'guiCreateWindow' Error


FSXTim

Recommended Posts

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

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