mR|TurboCow Posted October 31, 2009 Posted October 31, 2009 hey all! i have problem , i tryed to make spawnmenu , but he's dont show up , error line will be in and error look's like: ERROR: ...er/mods/deathmatch/rescources/spawnMenu/spawnmenu.lua:6: attempt to call global 'guiGetVisible' (a nil value) and script is : wdwspawnmenu = {} Button = {} spawnLabel = {} function createSpawnMenuWindow () if guiGetVisible (wdwspawnmenu) then guiSetVisible(wdwspawnmenu,false) showCursor(false) else wdwspawnmenu = guiCreateWindow ( 168, 161, 324, 135, "", false ) policeButton = guiCreateButton ( 0.0772, 0.2593, 0.2284, 0.2296, "Police", true, wdwspawnmenu ) civilianButton = guiCreateButton ( 0.3858, 0.2444, 0.2284, 0.2296, "Civilians", true, wdwspawnmenu ) robberButton = guiCreateButton ( 0.6636, 0.2519, 0.2284, 0.2296, "Robber's", true, wdwspawnmenu ) medicButton = guiCreateButton ( 0.0802, 0.5481, 0.2284, 0.2296, "Medics", true, wdwspawnmenu ) fireButton = guiCreateButton ( 0.3858, 0.5407, 0.2284, 0.2296, "Fire Deperament", true, wdwspawnmenu ) spawnLabel = guiCreateLabel ( 0.0926, 0.8074, 0.8827, 0.1407, "Plz choose one team where u want to spawn.", true, wdwspawnmenu ) guiLabelSetColor ( spawnLabel, 0, 0, 255 ) guiLabelSetVerticalAlign ( spawnLabel, "top" ) guiLabelSetHorizontalAlign( spawnLabel, "center", false ) guiSetVisible(wdwspawnmenu,true) showCursor(true) end end addCommandHandler ( "spawnmenu", createSpawnMenuWindow )
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