baba Posted March 16, 2015 Share Posted March 16, 2015 سلام عليكم شباب انا رح ازعجكم شويه اسف بس ابي كود كلام انا اكتبه في الكود واركبو مع الوحه يسير يطلع من اليسار ويروح لليمين ويرجع نفس الشي ويكون يتلون يعني مو لون ابيض بس ابيه يسير كل شويه يعطي لون غير ارجو التوضيح لو سمحتو Link to comment
Mr-M3AND Posted March 16, 2015 Share Posted March 16, 2015 شوف هذا الموضوع نفس طلبك https://forum.multitheftauto.com/viewtopic.php?f=160&t=85084&p=771038&hilit=%D9%85%D9%86+%D8%A7%D9%84%D9%8A%D8%B3%D8%A7%D8%B1+%D8%A7%D9%84%D9%89+%D8%A7%D9%84%D9%8A%D9%85%D9%8A%D9%86#p771038 Link to comment
baba Posted March 16, 2015 Author Share Posted March 16, 2015 مشكور يا معاند بس يا اخي مو عارف اجيب الكود اطلخبط عقلي ممكن تسعدني لو سمحت 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] = guiCreateWindow(0.27, 0.14, 0.44, 0.78, "Panel Shop", true) guiWindowSetSizable(GUIEditor.window[1], false ) guiSetVisible ( GUIEditor.window[1], false ) guiSetAlpha(GUIEditor.window[1], 0.78) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFFA6C04") GUIEditor.staticimage[1] = guiCreateStaticImage(0.05, 0.06, 0.34, 0.17, "infernus.png", true, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(0.05, 0.25, 0.35, 0.08, "Infernus", true, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "sa-header") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFA6C04") GUIEditor.staticimage[2] = guiCreateStaticImage(0.05, 0.38, 0.34, 0.17, "turismo.png", true, GUIEditor.window[1]) GUIEditor.staticimage[3] = guiCreateStaticImage(0.04, 0.71, 0.34, 0.13, "sanchez.png", true, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(0.05, 0.57, 0.35, 0.08, "Turismo", true, GUIEditor.window[1]) guiSetFont(GUIEditor.button[2], "sa-header") guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFFA6C04") GUIEditor.button[3] = guiCreateButton(0.05, 0.86, 0.35, 0.08, "Sanchez", true, GUIEditor.window[1]) guiSetFont(GUIEditor.button[3], "sa-header") guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFFA6C04") GUIEditor.label[1] = guiCreateLabel(0.05, 0.34, 0.34, 0.04, " $15000", true, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[1], 47, 254, 0) GUIEditor.label[2] = guiCreateLabel(0.07, 0.66, 0.30, 0.04, " $10000", true, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[2], 47, 254, 0) GUIEditor.label[3] = guiCreateLabel(0.06, 0.94, 0.30, 0.04, " $8000", true, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[3], 47, 254, 0) GUIEditor.staticimage[4] = guiCreateStaticImage(0.63, 0.06, 0.34, 0.17, "m4.png", true, GUIEditor.window[1]) GUIEditor.button[4] = guiCreateButton(0.63, 0.25, 0.35, 0.08, "M4", true, GUIEditor.window[1]) guiSetFont(GUIEditor.button[4], "sa-header") guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFFA6C04") GUIEditor.label[4] = guiCreateLabel(0.63, 0.35, 0.34, 0.04, " $1000", true, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[4], 47, 254, 0) GUIEditor.staticimage[5] = guiCreateStaticImage(0.63, 0.40, 0.34, 0.17, "sniper.png", true, GUIEditor.window[1]) GUIEditor.button[5] = guiCreateButton(0.63, 0.57, 0.34, 0.08, "Sniper", true, GUIEditor.window[1]) guiSetFont(GUIEditor.button[5], "sa-header") guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FFFA6C04") GUIEditor.label[5] = guiCreateLabel(0.66, 0.66, 0.30, 0.04, " $500", true, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[5], 47, 254, 0) GUIEditor.staticimage[6] = guiCreateStaticImage(0.63, 0.70, 0.34, 0.13, "tec-9.png", true, GUIEditor.window[1]) GUIEditor.button[6] = guiCreateButton(0.63, 0.86, 0.34, 0.08, "Tec-9", true, GUIEditor.window[1]) guiSetFont(GUIEditor.button[6], "sa-header") guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FFFA6C04") GUIEditor.label[6] = guiCreateLabel(0.66, 0.94, 0.30, 0.04, " $800", true, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[6], 47, 254, 0) end ) function Jose () guiSetVisible (GUIEditor.window[1], not guiGetVisible ( GUIEditor.window[1] ) ) showCursor( not isCursorShowing() ) end bindKey ("M","down",Jose ) function panel() if source == GUIEditor.button[1] then triggerServerEvent( "fee" , getLocalPlayer() ) elseif source == GUIEditor.button[2] then triggerServerEvent( "fee1" , getLocalPlayer() ) elseif source == GUIEditor.button[3] then triggerServerEvent( "fee2" , getLocalPlayer() ) elseif source == GUIEditor.button[4] then triggerServerEvent( "fee3" , getLocalPlayer() ) elseif source == GUIEditor.button[5] then triggerServerEvent( "fee4" , getLocalPlayer() ) elseif source == GUIEditor.button[6] then triggerServerEvent( "fee5" , getLocalPlayer() ) end end addEventHandler("onClientGUIClick",root,panel ) Link to comment
Mr-M3AND Posted March 16, 2015 Share Posted March 16, 2015 GUIEditor = { button = {}, window = {}, staticimage = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(0.27, 0.14, 0.44, 0.78, "Panel Shop", true) guiWindowSetSizable(GUIEditor.window[1], false ) guiSetVisible ( GUIEditor.window[1], false ) guiSetAlpha(GUIEditor.window[1], 0.78) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFFA6C04") GUIEditor.staticimage[1] = guiCreateStaticImage(0.05, 0.06, 0.34, 0.17, "infernus.png", true, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(0.05, 0.25, 0.35, 0.08, "Infernus", true, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "sa-header") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFA6C04") GUIEditor.staticimage[2] = guiCreateStaticImage(0.05, 0.38, 0.34, 0.17, "turismo.png", true, GUIEditor.window[1]) GUIEditor.staticimage[3] = guiCreateStaticImage(0.04, 0.71, 0.34, 0.13, "sanchez.png", true, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(0.05, 0.57, 0.35, 0.08, "Turismo", true, GUIEditor.window[1]) guiSetFont(GUIEditor.button[2], "sa-header") guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFFA6C04") GUIEditor.button[3] = guiCreateButton(0.05, 0.86, 0.35, 0.08, "Sanchez", true, GUIEditor.window[1]) guiSetFont(GUIEditor.button[3], "sa-header") guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFFA6C04") GUIEditor.label[1] = guiCreateLabel(0.05, 0.34, 0.34, 0.04, " $15000", true, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[1], 47, 254, 0) GUIEditor.label[2] = guiCreateLabel(0.07, 0.66, 0.30, 0.04, " $10000", true, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[2], 47, 254, 0) GUIEditor.label[3] = guiCreateLabel(0.06, 0.94, 0.30, 0.04, " $8000", true, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[3], 47, 254, 0) GUIEditor.staticimage[4] = guiCreateStaticImage(0.63, 0.06, 0.34, 0.17, "m4.png", true, GUIEditor.window[1]) GUIEditor.button[4] = guiCreateButton(0.63, 0.25, 0.35, 0.08, "M4", true, GUIEditor.window[1]) guiSetFont(GUIEditor.button[4], "sa-header") guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFFA6C04") GUIEditor.label[4] = guiCreateLabel(0.63, 0.35, 0.34, 0.04, " $1000", true, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[4], 47, 254, 0) GUIEditor.staticimage[5] = guiCreateStaticImage(0.63, 0.40, 0.34, 0.17, "sniper.png", true, GUIEditor.window[1]) GUIEditor.button[5] = guiCreateButton(0.63, 0.57, 0.34, 0.08, "Sniper", true, GUIEditor.window[1]) guiSetFont(GUIEditor.button[5], "sa-header") guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FFFA6C04") GUIEditor.label[5] = guiCreateLabel(0.66, 0.66, 0.30, 0.04, " $500", true, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[5], 47, 254, 0) GUIEditor.staticimage[6] = guiCreateStaticImage(0.63, 0.70, 0.34, 0.13, "tec-9.png", true, GUIEditor.window[1]) GUIEditor.button[6] = guiCreateButton(0.63, 0.86, 0.34, 0.08, "Tec-9", true, GUIEditor.window[1]) guiSetFont(GUIEditor.button[6], "sa-header") guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FFFA6C04") GUIEditor.label[6] = guiCreateLabel(0.66, 0.94, 0.30, 0.04, " $800", true, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[6], 47, 254, 0) GUIEditor.label[7] = guiCreateLabel(105, 90, 246, 42, "Text", false, GUIEditor.window[1]) end ) addEventHandler("onClientRender",getRootElement(), function() x,y = guiGetPosition(GUIEditor.label[7],false) xN,xY = x + 2 , y if xN >= 600 then xN = -200 guiLabelSetColor(GUIEditor.label[7],math.random(255),math.random(255),math.random(255)) end guiSetPosition(GUIEditor.label[7],xN,xY,false) end ) function Jose () guiSetVisible (GUIEditor.window[1], not guiGetVisible ( GUIEditor.window[1] ) ) showCursor( not isCursorShowing() ) end bindKey ("M","down",Jose ) function panel() if source == GUIEditor.button[1] then triggerServerEvent( "fee" , getLocalPlayer() ) elseif source == GUIEditor.button[2] then triggerServerEvent( "fee1" , getLocalPlayer() ) elseif source == GUIEditor.button[3] then triggerServerEvent( "fee2" , getLocalPlayer() ) elseif source == GUIEditor.button[4] then triggerServerEvent( "fee3" , getLocalPlayer() ) elseif source == GUIEditor.button[5] then triggerServerEvent( "fee4" , getLocalPlayer() ) elseif source == GUIEditor.button[6] then triggerServerEvent( "fee5" , getLocalPlayer() ) end end addEventHandler("onClientGUIClick",root,panel ) Link to comment
baba Posted March 16, 2015 Author Share Posted March 16, 2015 ممكن لو سمحت تطرح لي الكود هون لاني اذا ابي اسويه مره ثانيه في لوحه غير تكون لي ما رح اعرف الي اذا رجعت لكم يريت تطرح الكود وتوضحه بعد اذنك Link to comment
Mr.T9 Posted March 16, 2015 Share Posted March 16, 2015 ممكن لو سمحت تطرح لي الكود هونلاني اذا ابي اسويه مره ثانيه في لوحه غير تكون لي ما رح اعرف الي اذا رجعت لكم يريت تطرح الكود وتوضحه بعد اذنك الكود تبع الاخ Mr-M3AND addEventHandler("onClientRender",getRootElement(), function() x,y = guiGetPosition(GUIEditor.label[7],false) xN,xY = x + 2 , y if xN >= 600 then xN = -200 labelname = اسم الليبل 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 وين احط اسم الوحه؟ + وين مكان الكلام الي اكتبه ؟ Link to comment
Mr.T9 Posted March 16, 2015 Share Posted March 16, 2015 وين احط اسم الوحه؟+ وين مكان الكلام الي اكتبه ؟ اللوحة والليبل من عندك ذا تحطه تحت اللوحة والليبل وتكتب اسم الليبل بالمطلوب بالكود بس Link to comment
baba Posted March 16, 2015 Author Share Posted March 16, 2015 وين مكان الي انا احدده عشان يخرج منه الكلام ؟ الكلام الي كاتبه يطلع من مكان انا احدده وشكرن Link to comment
Mr.T9 Posted March 16, 2015 Share Posted March 16, 2015 وين مكان الي انا احدده عشان يخرج منه الكلام؟ الكلام الي كاتبه يطلع من مكان انا احدده وشكرن على حسب مقاس لوحتك ^ Link to comment
baba Posted March 16, 2015 Author Share Posted March 16, 2015 شباب شكرن على الردكم لي بس اسمع عندي مشكله الكلام الي انا اكتبه يطلع ورا الوحه مو جو الوحه + اذا سكرت الوحه الكالم يوقف مكانه يعني يبقه في الشابه ويوقف انا بطرح الكود 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 ) Link to comment
Mr.T9 Posted March 16, 2015 Share Posted March 16, 2015 شباب شكرن على الردكم لي بس اسمع عندي مشكله الكلام الي انا اكتبه يطلع ورا الوحه مو جو الوحه + اذا سكرت الوحه الكالم يوقف مكانه يعني يبقه في الشابه ويوقف انا بطرح الكود 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 ) 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(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 (edited) نفس المشلكه Edited March 16, 2015 by Guest Link to comment
Mr.T9 Posted March 16, 2015 Share Posted March 16, 2015 الشي تعديل بس GUIEditor = { window = {}, 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 ) Link to comment
baba Posted March 16, 2015 Author Share Posted March 16, 2015 الصراحه الصراحه الله يعطيك الف الف الف عافيه على مسعدتك الي بس ولله ثم ولله انو الكالم الي انا اكتبه يبقى يمشي مثل ما هو حتى لو كانت الوحه فاتحه او مسكره يريت تحل لي المشكله لو سمحت لان الكود ابيه ضروري لو سمحة عادي مو مهم الالوان لو فيه المشكله شف الصوره شف كلمت shop - baba بتلقيها على الشاشه Link to comment
Mr.T9 Posted March 16, 2015 Share Posted March 16, 2015 الصراحه الصراحه الله يعطيك الف الف الف عافيهعلى مسعدتك الي بس ولله ثم ولله انو الكالم الي انا اكتبه يبقى يمشي مثل ما هو حتى لو كانت الوحه فاتحه او مسكره يريت تحل لي المشكله لو سمحت لان الكود ابيه ضروري لو سمحة عادي مو مهم الالوان لو فيه المشكله شف الصوره http://www.m5zn.com/d/?15714181 شف كلمت shop - baba بتلقيها على الشاشه ايييه عرفت المشكلة تاكد من مسار الصورة الخطا يانه مافيه صورة بالمود او الميتا مانت ضايف ملف الصورة 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.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 ) 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 ) يا حب ذا الكود كامل شف افتحه عندك وجرب 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.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 ) 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 ) يا حب ذا الكود كامل شف افتحه عندك وجرب راح يطلع عندي زي اللي عندك مادام ماعندي الخلفية + انت تاكد من المسار بالحروف وكل شي Link to comment
baba Posted March 16, 2015 Author Share Posted March 16, 2015 اسمع مو مهم الصوره عادي شيلها وركب الوحه الاصليه مو مهم اصوره انت جربها على الوحه العاديه عندك Link to comment
Mr.T9 Posted March 16, 2015 Share Posted March 16, 2015 اسمع مو مهم الصوره عادي شيلها وركب الوحه الاصليهمو مهم اصوره انت جربها على الوحه العاديه عندك شغال تمام GUIEditor = { window = {}, label = {} } GUIEditor.window[1] = guiCreateWindow(150, 50, 674, 411, " ", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible (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 ) Link to comment
yazan Posted March 16, 2015 Share Posted March 16, 2015 (edited) 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 ) Edited March 16, 2015 by Guest Link to comment
Mr.T9 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 ومانت حاطها Link to comment
baba Posted March 16, 2015 Author Share Posted March 16, 2015 يا حب رح اتعبك معي بس ولله انو ذي المشكله مشكله كبيره راسي ولعت ضض المهم شف الكود الي بعته لك اخر شي؟ ابيك تزبط الكلام عليه لاني اخذت انا الكود ذا الي ارسلته وشغلته ونفس المشكله 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