Julian09123 Posted February 9, 2014 Share Posted February 9, 2014 Hola amigos puede ser que alguien me corrija mis errores no entiendo porque no anda me dice error pero son muchas lineas y me confundo ajaja No es copia lo cree yo pero no entiendo que esta mal Ayudenme porfis Client buttondeagle = { button = {} } buttonm4 = { button = {} } buttonak = { button = {} } satchel = { button = {} } buttonrifle = { button = {} } buttonsniper = { button = {} } uzi = { button = {} } granade = { button = {} } parachute = { button = {} } buttonpistol = { button = {} } armor = { button = {} } buttonshotgun = { button = {} } buttontec = { button = {} } buttonsilenced = { button = {} } teargas = { button = {} } Cerrar = { button = {} } addEventHandler("onClientResourceStart", resourceRoot, function() Window = guiCreateWindow(38, 58, 725, 482, "Weapon Shop", false) guiWindowSetSizable(Window, false) buttonm4 = guiCreateButton(10, 100, 98, 44, "6000$ x 200", false, Window) guiSetFont(buttonm4, "default-bold-small") Armor1 = guiCreateButton(617, 379, 98, 44, "1000$ x 100", false, Window) guiSetFont(Armor1 "default-bold-small") parachute = guiCreateButton(490, 379, 98, 44, "Price: 500$", false, Window) guiSetFont(parachute, "default-bold-small") buttonsatchel = guiCreateButton(369, 379, 98, 44, "1500$ x 4", false, Window) guiSetFont(buttonsatchel, "default-bold-small") buttontec = guiCreateButton(613, 245, 98, 44, "5500$ x 200", false, Window) guiSetFont(buttontec, "default-bold-small") buttonsniper = guiCreateButton(490, 241, 98, 44, "9000$ x 250", false, Window) guiSetFont(buttonsniper, "default-bold-small") buttonshotgun = guiCreateButton(369, 245, 98, 44, "1400$ x 150", false, Window) guiSetFont(buttonshotgun, "default-bold-small") buttonsilenced = guiCreateButton(249, 245, 98, 44, "500$ x 70", false, Window) guiSetFont(buttonsilenced, "default-bold-small") buttondeagle = guiCreateButton(128, 245, 98, 44, "800$ x 90", false, Window) guiSetFont(buttondeagle, "default-bold-small") buttonrifle = guiCreateButton(613, 100, 98, 44, "1000$ x 50", false, Window) guiSetFont(buttonrifle, "default-bold-small") buttondoubleshout = guiCreateButton(490, 100, 98, 44, "4200$ x 150", false, Window) guiSetFont(buttondoubleshout, "default-bold-small") buttonspaz = guiCreateButton(369, 100, 98, 44, "2900$ x 100", false, Window) guiSetFont(buttonspaz, "default-bold-small") buttonmp5 = guiCreateButton(249, 100, 98, 44, "3600$ 150", false, Window) guiSetFont(buttonmp5, "default-bold-small") buttonak = guiCreateButton(128, 100, 98, 44, "6500$ x 250", false, Window) guiSetFont(buttonak, "default-bold-small") buttonpistol = guiCreateButton(10, 245, 98, 44, "300$ x 50", false, Window) guiSetFont(buttonpistol, "default-bold-small") m4 = guiCreateStaticImage(16, 30, 82, 66, ":img/M4.png", false, Window) granade = guiCreateButton(249, 379, 98, 44, "3000$ x 5", false, Window) guiSetFont(granade, "default-bold-small") btnteargas = guiCreateButton(128, 379, 98, 44, "1800$ x 3", false, Window) guiSetFont(btnteargas.button[20], "default-bold-small") uzi = guiCreateButton(10, 379, 98, 44, "3500$ 150", false, Window) guiSetFont(uzi.button[20], "default-bold-small") Cerrar = guiCreateButton(321, 444, 122, 28, "Cerrar", false, Window) guiSetFont(Cerrar, "default-bold-small") guiSetVisible(Window, true) showCursor(true) Ak = guiCreateStaticImage(134, 32, 86, 64, ":img/AK-47.png", false, Window) mMp5 = guiCreateStaticImage(255, 33, 86, 57, ":img/MP5.png", false, Window) Parachute = guiCreateStaticImage(496, 308, 86, 57, ":img/PARACHUTE.png", false, Window) Spaz = guiCreateStaticImage(372, 33, 85, 62, ":img/SPAZ-12.png", false, Window) Pistol = guiCreateStaticImage(16, 180, 86, 55, ":img/pistol.png", false, Window) Rifle = guiCreateStaticImage(617, 42, 89, 53, ":img/rifle.png", false, Window) Satchel = guiCreateStaticImage(374, 310, 83, 59, ":img/satchel.png", false, Window) Sawnoff = guiCreateStaticImage(500, 33, 78, 62, ":img/sawnoff.png", false, Window) Deagle = guiCreateStaticImage(132, 181, 84, 54, ":img/deagle.png", false, Window) Armor = guiCreateStaticImage(626, 312, 85, 57, ":img/armor.png", false, Window) Granada = guiCreateStaticImage(252, 312, 85, 57, ":img/nade.png", false, Window) Tec = guiCreateStaticImage(617, 176, 88, 59, ":img/tec9.png", false, Window) Sniper = guiCreateStaticImage(495, 176, 87, 55, ":img/sniper.png", false, Window) Silenced = guiCreateStaticImage(252, 181, 85, 54, ":img/silenced.png", false, Window) Shoutung = guiCreateStaticImage(379, 184, 82, 57, ":img/shotgun.png", false, Window) Uzzi = guiCreateStaticImage(20, 319, 78, 50, ":img/uzi.png", false, Window) Gas = guiCreateStaticImage(137, 318, 79, 51, ":img/teargas.png", false, Window) end ) function Close () if source == Cerrar then showCursor (false) guiSetVisible (Window,false) end end addEventHandler ("onClientGUIClick", root, Close) function AK47() triggerServerEvent("AK47", localPlayer) hide() end addEventHandler("onClientGUIClick", buttonak, AK47, false) function M4v() triggerServerEvent("M4v", localPlayer) hide() end addEventHandler("onClientGUIClick", buttonm4, M4v, false) function MP5() triggerServerEvent("MP5", localPlayer) hide() end addEventHandler("onClientGUIClick", buttonmp5, MP5, false) function bomba() triggerServerEvent("bomba", localPlayer) hide() end addEventHandler("onClientGUIClick", granade, bomba, false) function sawn() triggerServerEvent("sawn", localPlayer) hide() end addEventHandler("onClientGUIClick", buttondoubleshout, sawn, false) function spaz12() triggerServerEvent("spaz12", localPlayer) hide() end addEventHandler("onClientGUIClick", buttonspaz, spaz12, false) function Shotgun() triggerServerEvent("Shotgun", localPlayer) hide() end addEventHandler("onClientGUIClick", buttonshotgun, Shotgun, false) function Satchel() triggerServerEvent("Satchel", localPlayer) hide() end addEventHandler("onClientGUIClick", buttonsatchel, Satchel, false) function teargas() triggerServerEvent("teargas", localPlayer) hide() end addEventHandler("onClientGUIClick", btnteargas, teargas, false) function Uziii() triggerServerEvent("Uzi", localPlayer) hide() end addEventHandler("onClientGUIClick", uzi, Uziii, false) function tec9() triggerServerEvent("tec9", localPlayer) hide() end addEventHandler("onClientGUIClick", buttontec, tec9, false) function pistol() triggerServerEvent("pistol", localPlayer) hide() end addEventHandler("onClientGUIClick", buttonpistol, pistol, false) function Silenced() triggerServerEvent("Silenced", localPlayer) hide() end addEventHandler("onClientGUIClick", buttonsilenced, Silenced, false) function Deagle() triggerServerEvent("Deagle", localPlayer) hide() end addEventHandler("onClientGUIClick", buttondeagle, Deagle, false) function Sniper() triggerServerEvent("Sniper", localPlayer) hide() end addEventHandler("onClientGUIClick", buttonsniper, Sniper, false) function Rifle() triggerServerEvent("Rifle", localPlayer) hide() end addEventHandler("onClientGUIClick", buttonrifle, Rifle, false) function armor() triggerServerEvent("armor", localPlayer) hide() end addEventHandler("onClientGUIClick", Armor1, armor, false) function Parachutee() triggerServerEvent("Parachutee", localPlayer) hide() end addEventHandler("onClientGUIClick", parachute, Parachutee, false) Link to comment
manawydan Posted February 9, 2014 Share Posted February 9, 2014 error debug? server side work? Link to comment
Julian09123 Posted February 9, 2014 Author Share Posted February 9, 2014 Server side are incomplete because i wanna complete first the client Error in debug?: Yes Line 219 223 235 and others Maybe all of here function AK47() triggerServerEvent("AK47", localPlayer) hide() end addEventHandler("onClientGUIClick", buttonak, AK47, false) function M4v() triggerServerEvent("M4v", localPlayer) hide() end addEventHandler("onClientGUIClick", buttonm4, M4v, false) function MP5() triggerServerEvent("MP5", localPlayer) hide() end addEventHandler("onClientGUIClick", buttonmp5, MP5, false) function bomba() triggerServerEvent("bomba", localPlayer) hide() end addEventHandler("onClientGUIClick", granade, bomba, false) function sawn() triggerServerEvent("sawn", localPlayer) hide() end addEventHandler("onClientGUIClick", buttondoubleshout, sawn, false) function spaz12() triggerServerEvent("spaz12", localPlayer) hide() end addEventHandler("onClientGUIClick", buttonspaz, spaz12, false) function Shotgun() triggerServerEvent("Shotgun", localPlayer) hide() end addEventHandler("onClientGUIClick", buttonshotgun, Shotgun, false) function Satchel() triggerServerEvent("Satchel", localPlayer) hide() end addEventHandler("onClientGUIClick", buttonsatchel, Satchel, false) function teargas() triggerServerEvent("teargas", localPlayer) hide() end addEventHandler("onClientGUIClick", btnteargas, teargas, false) function Uziii() triggerServerEvent("Uzi", localPlayer) hide() end addEventHandler("onClientGUIClick", uzi, Uziii, false) function tec9() triggerServerEvent("tec9", localPlayer) hide() end addEventHandler("onClientGUIClick", buttontec, tec9, false) function pistol() triggerServerEvent("pistol", localPlayer) hide() end addEventHandler("onClientGUIClick", buttonpistol, pistol, false) function Silenced() triggerServerEvent("Silenced", localPlayer) hide() end addEventHandler("onClientGUIClick", buttonsilenced, Silenced, false) function Deagle() triggerServerEvent("Deagle", localPlayer) hide() end addEventHandler("onClientGUIClick", buttondeagle, Deagle, false) function Sniper() triggerServerEvent("Sniper", localPlayer) hide() end addEventHandler("onClientGUIClick", buttonsniper, Sniper, false) function Rifle() triggerServerEvent("Rifle", localPlayer) hide() end addEventHandler("onClientGUIClick", buttonrifle, Rifle, false) function armor() triggerServerEvent("armor", localPlayer) hide() end addEventHandler("onClientGUIClick", Armor1, armor, false) function Parachutee() triggerServerEvent("Parachutee", localPlayer) hide() end addEventHandler("onClientGUIClick", parachute, Parachutee, false) Link to comment
Julian09123 Posted February 9, 2014 Author Share Posted February 9, 2014 Solucionado Finished. Link to comment
Recommended Posts