Hey, ich bin gerade dabei ne Ammunation für mein kleines Gangwar script zu erstellen.. leider hab ich das Problem, dass sobald ich auf nem Button Klicke nichts passiert ich komm nichtmehr weiter..
http://www.mediafire.com/view/hjzm87dryps88n6/Code.txt
MFG DireXus *rolleyes*
Lua
function showAmmuNation()
Gangwar.window[1] = guiCreateWindow(0.31, 0.20, 0.37, 0.57, "Gangwar-Ammunation", true)
guiWindowSetSizable(Gangwar.window[1], false)
Gangwar.button[1] = guiCreateButton(0.04, 0.32, 0.25, 0.07, "M4 [1000$]", true, Gangwar.window[1])
guiSetProperty(Gangwar.button[1], "NormalTextColour", "FFAAAAAA")
Gangwar.button[2] = guiCreateButton(0.37, 0.32, 0.26, 0.07, "Ak47 [1000$]", true, Gangwar.window[1])
guiSetProperty(Gangwar.button[2], "NormalTextColour", "FFAAAAAA")
Gangwar.button[3] = guiCreateButton(0.71, 0.32, 0.24, 0.07, "Shotgun [1000$]", true, Gangwar.window[1])
guiSetProperty(Gangwar.button[3], "NormalTextColour", "FFAAAAAA")
Gangwar.button[4] = guiCreateButton(0.04, 0.58, 0.25, 0.07, "Minigun [20000$]", true, Gangwar.window[1])
guiSetProperty(Gangwar.button[4], "NormalTextColour", "FFAAAAAA")
Gangwar.button[5] = guiCreateButton(0.37, 0.58, 0.26, 0.07, "Silenced [500$]", true, Gangwar.window[1])
guiSetProperty(Gangwar.button[5], "NormalTextColour", "FFAAAAAA")
Gangwar.button[6] = guiCreateButton(0.71, 0.58, 0.24, 0.07, "Deagle [2000$]", true, Gangwar.window[1])
guiSetProperty(Gangwar.button[6], "NormalTextColour", "FFAAAAAA")
Gangwar.button[7] = guiCreateButton(0.04, 0.87, 0.25, 0.07, "Uzi [2500$]", true, Gangwar.window[1])
guiSetProperty(Gangwar.button[7], "NormalTextColour", "FFAAAAAA")
Gangwar.button[8] = guiCreateButton(0.37, 0.87, 0.26, 0.07, "MP5 [2500$]", true, Gangwar.window[1])
guiSetProperty(Gangwar.button[8], "NormalTextColour", "FFAAAAAA")
Gangwar.button[9] = guiCreateButton(0.71, 0.88, 0.24, 0.07, "Tec-9 [3000$]", true, Gangwar.window[1])
guiSetProperty(Gangwar.button[9], "NormalTextColour", "FFAAAAAA")
Gangwar.button[10] = guiCreateButton(0.84, 0.05, 0.14, 0.05, "Close", true, Gangwar.window[1])
guiSetProperty(Gangwar.button[10], "NormalTextColour", "FFAAAAAA")
Gangwar.staticimage[1] = guiCreateStaticImage(0.09, 0.14, 0.15, 0.16, "images/M4.png", true, Gangwar.window[1])
Gangwar.staticimage[2] = guiCreateStaticImage(0.42, 0.14, 0.15, 0.16, "images/Ak47.png", true, Gangwar.window[1])
Gangwar.staticimage[3] = guiCreateStaticImage(0.76, 0.14, 0.15, 0.16, "images/Shotgun.png", true, Gangwar.window[1])
Gangwar.staticimage[4] = guiCreateStaticImage(0.09, 0.41, 0.15, 0.16, "images/Pistol.png", true, Gangwar.window[1])
Gangwar.staticimage[5] = guiCreateStaticImage(0.42, 0.41, 0.15, 0.16, "images/Silenced.png", true, Gangwar.window[1])
Gangwar.staticimage[6] = guiCreateStaticImage(0.76, 0.41, 0.15, 0.16, "images/Deagle.png", true, Gangwar.window[1])
Gangwar.staticimage[7] = guiCreateStaticImage(0.09, 0.71, 0.15, 0.16, "images/Uzi.png", true, Gangwar.window[1])
Gangwar.staticimage[8] = guiCreateStaticImage(0.42, 0.71, 0.15, 0.16, "images/MP5.png", true, Gangwar.window[1])
Gangwar.staticimage[9] = guiCreateStaticImage(0.76, 0.71, 0.15, 0.16, "images/Tec-9.png", true, Gangwar.window[1])
showCursor( true )
end
addEvent("ShowAmmu", true )
addEventHandler("ShowAmmu", getRootElement(), showAmmuNation )
function hidegui()
guiSetVisible( Gangwar.window[1], false )
showCursor( false )
end
addEventHandler("onClientGUIClick", Gangwar.button[10], spawnclick )
Alles anzeigen