Mhmd.z Posted August 26, 2015 Share Posted August 26, 2015 السلام عليكم ورحمة الله وبركاته طلبت مساعده قبل وساعدتوني , وحاولت اسوي كود وما ضبط , الكود هو انه الرو ييجي لكل الاعبين يعني يوم شخص يضغط زر يسوي رو جديد واللكل يشوف ذا الرو --client addEventHandler ( "onClientGUIClick", guiRoot, function ( ) if source == my_button then triggerServerEvent("trigger_list", localPlayer) end end ) --server addEvent ( 'trigger_list' , true ) addEventHandler ( 'trigger_list' , root, function () outputChatBox ("#00ff00* "..getPlayerName(source), root, 255, 0, 0, true) table = { } table [ #table + 1 ] = "New Row .." end ) for i,v in ipairs (table) do triggerClientEvent("trigger_Client", v, source) end --client addEvent ( 'trigger_Client' , true ) addEventHandler ( 'trigger_Client' , root, function ( v ) guiGridListSetItemText(my_list, v[1], v[2], v[3], 1, ""..getPlayerName(localPlayer)..": ", true, true) end ) تصحيح ..... Link to comment
iMr.SFA7 Posted August 26, 2015 Share Posted August 26, 2015 addEvent ( 'trigger_list' , true ) addEventHandler ( 'trigger_list' , root, function () outputChatBox ("#00ff00* "..getPlayerName(source), root, 255, 0, 0, true) table = { } table [ #table + 1 ] = "New Row .." end ) for i,v in ipairs (table) do triggerClientEvent(v,"trigger_Client", v) end guiGridListAddRow وشيء ثآني المفروض بالكلنت تستخدم Link to comment
Mhmd.z Posted August 26, 2015 Author Share Posted August 26, 2015 guiGridListAddRow كيف استخدم ؟ وين رح اضع row? local row = guiGridListAddRow(my_list) guiGridListSetItemText(my_list, v[1], v[2], v[3], 1, ""..getPlayerName(localPlayer)..": ", true, true) Link to comment
iMr.SFA7 Posted August 26, 2015 Share Posted August 26, 2015 --Client side addEvent ( 'trigger_Client' , true ) addEventHandler ( 'trigger_Client' , root, function ( v , name) row = guiGridListAddRow(my_list) guiGridListSetItemText(my_list, row,v[1], v[2], v[3], ""..name..": ", true, true) end ) -- Server side addEvent ( 'trigger_list' , true ) addEventHandler ( 'trigger_list' , root, function () name = getPlayerName(source) outputChatBox ("#00ff00* "..name, root, 255, 0, 0, true) table = { } table [ #table + 1 ] = "New Row .." end ) for i,v in ipairs (table) do triggerClientEvent(v,"trigger_Client", v, name) end Link to comment
iMr.SFA7 Posted August 26, 2015 Share Posted August 26, 2015 مو ضابط /debugscript 3 ? Link to comment
Mhmd.z Posted August 26, 2015 Author Share Posted August 26, 2015 ما يجيب انه في خطأ بالمود , ييجي كلام بالشات لكن ما يصنع رو Link to comment
iMr.SFA7 Posted August 26, 2015 Share Posted August 26, 2015 جرب كذآ ؟ --Client side addEvent ( 'trigger_Client' , true ) addEventHandler ( 'trigger_Client' , root, function ( v , name) row = guiGridListAddRow(my_list) guiGridListSetItemText(my_list, row,v, ""..name..": ", true, true) end ) Link to comment
iMr.SFA7 Posted August 26, 2015 Share Posted August 26, 2015 كمان مو ضابط . .. طيب وضح آيش تبي تسوي بالضبط وليه الجدول ؟ أنت تبي اسم اللاعب الي ضغط الزر يجي بالرو لكل اللاعبين فقط صحيح ؟ Link to comment
Mhmd.z Posted August 26, 2015 Author Share Posted August 26, 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