Ahmed Ly Posted February 19, 2016 Share Posted February 19, 2016 السلام عليكم وين خطا في هدا كود ؟؟ كلنت function a () playSound("Mp3/scroll.mp3") triggerServerEvent("set_skin_1",localPlayer) end addEventHandler("onClientGUIClick",GUIEditor.button[1] , a , false) سيرفر function nn () id = math.random(46) setPlayerSkin(source,id) end addEvent("set_skin_1",true) addEventHandler("set_skin_1",root,nn) Link to comment
ivor Posted February 19, 2016 Share Posted February 19, 2016 سيرفر function nn () id = math.random(46) setPlayerSkin(source,id) end addEvent("set_skin_1",true) addEventHandler("set_skin_1",root,nn) اخوي حط ذا داخل الفنكشن function nn ( id ) مشان ال setPlayerSkin(source,id) الاي دي محتاج الفنكشن جرب وشغل المود و ورينا بعد ماتكتب ب أف8 debugscript 3 وش راح يطلعلك موفق Link to comment
Ahmed Ly Posted February 19, 2016 Author Share Posted February 19, 2016 سيرفر function nn () id = math.random(46) setPlayerSkin(source,id) end addEvent("set_skin_1",true) addEventHandler("set_skin_1",root,nn) اخوي حط ذا داخل الفنكشن function nn ( id ) مشان ال setPlayerSkin(source,id) الاي دي محتاج الفنكشن جرب وشغل المود و ورينا بعد ماتكتب ب أف8 debugscript 3 وش راح يطلعلك موفق debugscript [2016-02-19 15:45:57] WARNING: GameMode/s_ahmed.lua(Line 34) [server] setPlayerSkin is deprecated and may not work in future versions. Please replace with setElementModel. Link to comment
ivor Posted February 19, 2016 Share Posted February 19, 2016 مود موحد هاد ام في القيم مود ؟ Link to comment
Ahmed Ly Posted February 19, 2016 Author Share Posted February 19, 2016 مود موحد هاد ام في القيم مود ؟ كيف قصدك ؟ Link to comment
a7zan Posted February 19, 2016 Share Posted February 19, 2016 استخدم setPlayerSkin بدلاً من setElementModel Link to comment
Ahmed Ly Posted February 19, 2016 Author Share Posted February 19, 2016 استخدمsetPlayerSkin بدلاً من setElementModel نفس شي ما يخدم كود و هدا كود كمل كلت GUIEditor = { button = {}, } GUIEditor.button[1] = guiCreateButton(277, 630, 124, 60, "", false) GUIEditor.button[2] = guiCreateButton(625, 636, 124, 49, "", false) GUIEditor.button[3] = guiCreateButton(434, 719, 139, 32, "ok", false) function () dxDrawRectangle(260, 626, 155, 74, tocolor(237, 15, 31, 255), false) dxDrawRectangle(612, 626, 155, 74, tocolor(237, 15, 31, 255), false) dxDrawText(">", 637, 639, 706, 671, tocolor(58, 42, 209, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("<", 284, 641, 378, 695, tocolor(58, 42, 209, 255), 1, "pricedown", "left", "top", false, false, true, false, false) dxDrawRectangle(413, 710, 199, 52, tocolor(97, 238, 12, 255), false) dxDrawText("ok", 453, 717, 566, 754, tocolor(83, 128, 166, 255), 1, "bankgothic", "left", "top", false, false, true, false, false) end addEventHandler("onClientRender", root,) function a () playSound("Mp3/scroll.mp3") triggerServerEvent("set_skin_1",localPlayer) end addEventHandler("onClientGUIClick",GUIEditor.button[1] , a , false) function e () playSound("Mp3/scroll.mp3") triggerServerEvent("set_skin_2",localplayer) end addEventHandler("onClientGUIClick",GUIEditor.button[2] , e , false) سيرفر function nn () id = math.random(46) setElementModel(source,id) end addEvent("set_skin_1",true) addEventHandler("set_skin_1",root,nn) function mm () skin = math.random(46) setElementModel(source,skin) end addEvent("set_skin_2",true) addEventHandler("set_skin_2",root,mm) Link to comment
ivor Posted February 19, 2016 Share Posted February 19, 2016 استخدمsetPlayerSkin بدلاً من setElementModel نفس شي ما يخدم كود و هدا كود كمل كلت GUIEditor = { button = {}, } GUIEditor.button[1] = guiCreateButton(277, 630, 124, 60, "", false) GUIEditor.button[2] = guiCreateButton(625, 636, 124, 49, "", false) GUIEditor.button[3] = guiCreateButton(434, 719, 139, 32, "ok", false) function () dxDrawRectangle(260, 626, 155, 74, tocolor(237, 15, 31, 255), false) dxDrawRectangle(612, 626, 155, 74, tocolor(237, 15, 31, 255), false) dxDrawText(">", 637, 639, 706, 671, tocolor(58, 42, 209, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("<", 284, 641, 378, 695, tocolor(58, 42, 209, 255), 1, "pricedown", "left", "top", false, false, true, false, false) dxDrawRectangle(413, 710, 199, 52, tocolor(97, 238, 12, 255), false) dxDrawText("ok", 453, 717, 566, 754, tocolor(83, 128, 166, 255), 1, "bankgothic", "left", "top", false, false, true, false, false) end addEventHandler("onClientRender", root,) function a () playSound("Mp3/scroll.mp3") triggerServerEvent("set_skin_1",localPlayer) end addEventHandler("onClientGUIClick",GUIEditor.button[1] , a , false) function e () playSound("Mp3/scroll.mp3") triggerServerEvent("set_skin_2",localplayer) end addEventHandler("onClientGUIClick",GUIEditor.button[2] , e , false) سيرفر function nn () id = math.random(46) setElementModel(source,id) end addEvent("set_skin_1",true) addEventHandler("set_skin_1",root,nn) function mm () skin = math.random(46) setElementModel(source,skin) end addEvent("set_skin_2",true) addEventHandler("set_skin_2",root,mm) وش تخبصص انت يا خووي عمر ال DX مايمشي مع الGUI جربتها قبل كذا انا اقسم ذا في سكربت وذا ف سكربت مشان لا يحدث اخطاء Link to comment
Ahmed Ly Posted February 19, 2016 Author Share Posted February 19, 2016 استخدمsetPlayerSkin بدلاً من setElementModel نفس شي ما يخدم كود و هدا كود كمل كلت GUIEditor = { button = {}, } GUIEditor.button[1] = guiCreateButton(277, 630, 124, 60, "", false) GUIEditor.button[2] = guiCreateButton(625, 636, 124, 49, "", false) GUIEditor.button[3] = guiCreateButton(434, 719, 139, 32, "ok", false) function () dxDrawRectangle(260, 626, 155, 74, tocolor(237, 15, 31, 255), false) dxDrawRectangle(612, 626, 155, 74, tocolor(237, 15, 31, 255), false) dxDrawText(">", 637, 639, 706, 671, tocolor(58, 42, 209, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("<", 284, 641, 378, 695, tocolor(58, 42, 209, 255), 1, "pricedown", "left", "top", false, false, true, false, false) dxDrawRectangle(413, 710, 199, 52, tocolor(97, 238, 12, 255), false) dxDrawText("ok", 453, 717, 566, 754, tocolor(83, 128, 166, 255), 1, "bankgothic", "left", "top", false, false, true, false, false) end addEventHandler("onClientRender", root,) function a () playSound("Mp3/scroll.mp3") triggerServerEvent("set_skin_1",localPlayer) end addEventHandler("onClientGUIClick",GUIEditor.button[1] , a , false) function e () playSound("Mp3/scroll.mp3") triggerServerEvent("set_skin_2",localplayer) end addEventHandler("onClientGUIClick",GUIEditor.button[2] , e , false) سيرفر function nn () id = math.random(46) setElementModel(source,id) end addEvent("set_skin_1",true) addEventHandler("set_skin_1",root,nn) function mm () skin = math.random(46) setElementModel(source,skin) end addEvent("set_skin_2",true) addEventHandler("set_skin_2",root,mm) وش تخبصص انت يا خووي عمر ال DX مايمشي مع الGUI جربتها قبل كذا انا اقسم ذا في سكربت وذا ف سكربت مشان لا يحدث اخطاء خلاص حليت مشكله Link to comment
Me[Z]oO Posted February 19, 2016 Share Posted February 19, 2016 استخدمsetPlayerSkin بدلاً من setElementModel نفس شي ما يخدم كود و هدا كود كمل كلت GUIEditor = { button = {}, } GUIEditor.button[1] = guiCreateButton(277, 630, 124, 60, "", false) GUIEditor.button[2] = guiCreateButton(625, 636, 124, 49, "", false) GUIEditor.button[3] = guiCreateButton(434, 719, 139, 32, "ok", false) function () dxDrawRectangle(260, 626, 155, 74, tocolor(237, 15, 31, 255), false) dxDrawRectangle(612, 626, 155, 74, tocolor(237, 15, 31, 255), false) dxDrawText(">", 637, 639, 706, 671, tocolor(58, 42, 209, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("<", 284, 641, 378, 695, tocolor(58, 42, 209, 255), 1, "pricedown", "left", "top", false, false, true, false, false) dxDrawRectangle(413, 710, 199, 52, tocolor(97, 238, 12, 255), false) dxDrawText("ok", 453, 717, 566, 754, tocolor(83, 128, 166, 255), 1, "bankgothic", "left", "top", false, false, true, false, false) end addEventHandler("onClientRender", root,) function a () playSound("Mp3/scroll.mp3") triggerServerEvent("set_skin_1",localPlayer) end addEventHandler("onClientGUIClick",GUIEditor.button[1] , a , false) function e () playSound("Mp3/scroll.mp3") triggerServerEvent("set_skin_2",localplayer) end addEventHandler("onClientGUIClick",GUIEditor.button[2] , e , false) سيرفر function nn () id = math.random(46) setElementModel(source,id) end addEvent("set_skin_1",true) addEventHandler("set_skin_1",root,nn) function mm () skin = math.random(46) setElementModel(source,skin) end addEvent("set_skin_2",true) addEventHandler("set_skin_2",root,mm) وش تخبصص انت يا خووي عمر ال DX مايمشي مع الGUI جربتها قبل كذا انا اقسم ذا في سكربت وذا ف سكربت مشان لا يحدث اخطاء بلا تخبيص كيف ما يمشي 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