yazan Posted March 16, 2015 Share Posted March 16, 2015 GUIEditor = { window = {}, <<<<<<< label = {} } GUIEditor = { staticimage = {}, label = {} } GUIEditor.window[1] = guiCreateStaticImage(150, 50, 674, 411, "Images/baba.png", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.label[1] = guiCreateLabel(100,0.1, 200, 0.5, "Shop - baba", true, GUIEditor.window[1]) addEventHandler("onClientRender",getRootElement(), function() x,y = guiGetPosition(GUIEditor.label[1],false) xN,xY = x + 2 , y if xN >= 650 then xN = -200 labelname = GUIEditor.label[1] guiLabelSetColor(GUIEditor.label[1],math.random(255),math.random(255),math.random(255)) end guiSetPosition(GUIEditor.label[1],xN,xY,false) end ) خطا الكود + ماراح يشتغل كله حاطلي بالجدول staticimage ومانت مستخدمها ومستخدم window ومانت حاطها مع نفسك ما عدلت على كود غير الجدول + تعديل GUIEditor = { staticimage = {}, label = {} } dd = guiCreateStaticImage(150, 50, 674, 411, "1.png", false) GUIEditor.label[1] = guiCreateLabel(100,0.1, 200, 0.5, "Shop - baba", true, dd) addEventHandler("onClientRender",getRootElement(), function() x,y = guiGetPosition(GUIEditor.label[1],false) xN,xY = x + 2 , y if xN >= 650 then xN = -200 labelname = GUIEditor.label[1] guiLabelSetColor(GUIEditor.label[1],math.random(255),math.random(255),math.random(255)) end guiSetPosition(GUIEditor.label[1],xN,xY,false) end ) Link to comment
Mr.T9 Posted March 16, 2015 Share Posted March 16, 2015 يا حب رح اتعبك معي بس ولله انو ذي المشكله مشكله كبيره راسي ولعت ضض المهم شف الكود الي بعته لك اخر شي؟ ابيك تزبط الكلام عليه لاني اخذت انا الكود ذا الي ارسلته وشغلته ونفس المشكله تفضل GUIEditor = { button = {}, window = {}, staticimage = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateStaticImage(150, 50, 674, 411, "Images/baba.png", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.label[1] = guiCreateLabel(100,0.1, 200, 0.5, "Shop - baba", true, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(20, 340, 101, 47, "5000$", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(154, 340, 101, 47, "5000$", false, GUIEditor.window[1]) GUIEditor.button[3] = guiCreateButton(285, 340, 101, 46, "7000$", false, GUIEditor.window[1]) GUIEditor.button[4] = guiCreateButton(418, 340, 101, 46, "10000$", false, GUIEditor.window[1]) GUIEditor.button[5] = guiCreateButton(549, 340, 101, 46, "10000$", false, GUIEditor.window[1]) GUIEditor.staticimage[1] = guiCreateStaticImage(15, 60, 121, 266, "Images/image2.png", false, GUIEditor.window[1]) GUIEditor.staticimage[2] = guiCreateStaticImage(144, 60, 121, 266, "Images/image10.png", false, GUIEditor.window[1]) GUIEditor.staticimage[3] = guiCreateStaticImage(275, 60, 121, 266, "Images/image11.png", false, GUIEditor.window[1]) GUIEditor.staticimage[4] = guiCreateStaticImage(408, 60, 121, 266, "Images/image12.png", false, GUIEditor.window[1]) GUIEditor.staticimage[5] = guiCreateStaticImage(538, 60, 121, 265, "Images/image13.png", false, GUIEditor.window[1]) end ) addEventHandler("onClientResourceStart", resourceRoot, function() guiSetVisible(GUIEditor.window[1],false) showCursor(false) end ) addEventHandler("onClientGUIClick",getRootElement(), function () if source == GUIEditor.button[6] then guiSetVisible(GUIEditor.window[1],false) showCursor(false) end end ) bindKey("f2","down", function () if guiGetVisible(GUIEditor.window[1]) then guiSetVisible(GUIEditor.window[1],false) showCursor(false) else guiSetVisible(GUIEditor.window[1],true) showCursor(true) end end ) addEventHandler("onClientRender",getRootElement(), function() x,y = guiGetPosition(GUIEditor.label[1],false) xN,xY = x + 2 , y if xN >= 650 then xN = -200 labelname = GUIEditor.label[1] guiLabelSetColor(labelname ,math.random(255),math.random(255),math.random(255)) end guiSetPosition(labelname,xN,xY,false) end ) Link to comment
baba Posted March 16, 2015 Author Share Posted March 16, 2015 يا حب رح اتعبك معي بس ولله انو ذي المشكله مشكله كبيره راسي ولعت ضض المهم شف الكود الي بعته لك اخر شي؟ ابيك تزبط الكلام عليه لاني اخذت انا الكود ذا الي ارسلته وشغلته ونفس المشكله تفضل GUIEditor = { button = {}, window = {}, staticimage = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateStaticImage(150, 50, 674, 411, "Images/baba.png", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.label[1] = guiCreateLabel(100,0.1, 200, 0.5, "Shop - baba", true, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(20, 340, 101, 47, "5000$", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(154, 340, 101, 47, "5000$", false, GUIEditor.window[1]) GUIEditor.button[3] = guiCreateButton(285, 340, 101, 46, "7000$", false, GUIEditor.window[1]) GUIEditor.button[4] = guiCreateButton(418, 340, 101, 46, "10000$", false, GUIEditor.window[1]) GUIEditor.button[5] = guiCreateButton(549, 340, 101, 46, "10000$", false, GUIEditor.window[1]) GUIEditor.staticimage[1] = guiCreateStaticImage(15, 60, 121, 266, "Images/image2.png", false, GUIEditor.window[1]) GUIEditor.staticimage[2] = guiCreateStaticImage(144, 60, 121, 266, "Images/image10.png", false, GUIEditor.window[1]) GUIEditor.staticimage[3] = guiCreateStaticImage(275, 60, 121, 266, "Images/image11.png", false, GUIEditor.window[1]) GUIEditor.staticimage[4] = guiCreateStaticImage(408, 60, 121, 266, "Images/image12.png", false, GUIEditor.window[1]) GUIEditor.staticimage[5] = guiCreateStaticImage(538, 60, 121, 265, "Images/image13.png", false, GUIEditor.window[1]) end ) addEventHandler("onClientResourceStart", resourceRoot, function() guiSetVisible(GUIEditor.window[1],false) showCursor(false) end ) addEventHandler("onClientGUIClick",getRootElement(), function () if source == GUIEditor.button[6] then guiSetVisible(GUIEditor.window[1],false) showCursor(false) end end ) bindKey("f2","down", function () if guiGetVisible(GUIEditor.window[1]) then guiSetVisible(GUIEditor.window[1],false) showCursor(false) else guiSetVisible(GUIEditor.window[1],true) showCursor(true) end end ) addEventHandler("onClientRender",getRootElement(), function() x,y = guiGetPosition(GUIEditor.label[1],false) xN,xY = x + 2 , y if xN >= 650 then xN = -200 labelname = GUIEditor.label[1] guiLabelSetColor(labelname ,math.random(255),math.random(255),math.random(255)) end guiSetPosition(labelname,xN,xY,false) end ) مشكور يا غالي مشكور مشكور مشكور يعطيك الف الف الف الف عافيه Link to comment
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