Adham Posted April 28, 2016 Share Posted April 28, 2016 سلام عليكم انا عملت سبورت سيستم وعامل واحد كلوم مفروض 2 كلوم اول واحد اسم والتاني الرساله انا عاوز يجي في الكلوم واحد فقط الكود اهو addEventHandler("onClientGUIClick",GUIEditor.button[1],function () if guiGetText(GUIEditor.edit[1]) ~= '' then triggerServerEvent("support",localPlayer,guiGetText(GUIEditor.edit[1])) end end, false) addEvent("sendmessage2",true) addEventHandler("sendmessage2",root, function(Name,Text) local gg = guiGridListAddRow(GUIEditor.gridlist[1]) guiGridListSetItemText(GUIEditor.gridlist[1],gg, 1,Name, false, false) guiGridListSetItemText(GUIEditor.gridlist[1],gg, 1,tostring(Text), false, false) guiGridListSetItemColor(GUIEditor.gridlist[1],gg, 1, 0, 255, 0, 255) if ( guiCheckBoxGetSelected( GUIEditor.checkbox[2] ) == true ) then outputChatBox("[support-System] #00FF00"..Name.."#FFFFFF : #00FF00"..guiGetText(GUIEditor.edit[1]),255,255,0,true) end end) عملته علي كلوم واحد ما عمل Link to comment
#|_oskar_|# Posted April 28, 2016 Share Posted April 28, 2016 وضح مشكلتك اكثر لاني مافهمتك كويس Link to comment
Adham Posted April 28, 2016 Author Share Posted April 28, 2016 انا عامل سبورت سيستم اوك؟ الكود بيجي في ال cloum لاول الاسم والتاني الرسالة انا عاوز في كلوم واحد يجي الاسم والرساله انا حاولت اعملها وما ظبتت Link to comment
#|_oskar_|# Posted April 28, 2016 Share Posted April 28, 2016 guiGridListSetItemText(GUIEditor.gridlist[1],gg, 1,Name .. " : " .. Text , false, false) جرب كذا Link to comment
Adham Posted April 28, 2016 Author Share Posted April 28, 2016 ما ظبت ولا تبعت اصلن [lua]addEventHandler("onClientGUIClick",GUIEditor.button[1],function () if guiGetText(GUIEditor.edit[1]) ~= '' then triggerServerEvent("support",localPlayer,guiGetText(GUIEditor.edit[1])) end end, false) addEvent("sendmessage2",true) addEventHandler("sendmessage2",root, function(Name,Text) local gg = guiGridListAddRow(GUIEditor.gridlist[1]) guiGridListSetItemText(GUIEditor.gridlist[1],gg, 1,Name .. " : " .. Text , false, false) guiGridListSetItemColor(GUIEditor.gridlist[1],gg, 1, 0, 255, 0, 255) if ( guiCheckBoxGetSelected( GUIEditor.checkbox[2] ) == true ) then outputChatBox("[support-System] #00FF00"..Name.."#FFFFFF : #00FF00"..guiGetText(GUIEditor.edit[1]),255,255,0,true) end end) [/lua] Link to comment
#|_oskar_|# Posted April 28, 2016 Share Posted April 28, 2016 شغل الديبق وشوف الاخطاء اللى تطلع وصورها Link to comment
Adham Posted April 28, 2016 Author Share Posted April 28, 2016 تمام انا عامل سبورت سيستم وعاوز لما يضعط عليها ويكبت باليديت ويبعت الرسالة عاوز الرساله تتمسح الهوا كتبها بالايدين Link to comment
Adham Posted April 28, 2016 Author Share Posted April 28, 2016 addEventHandler("onClientGUIClick",GUIEditor.button[1],function () if guiGetText(GUIEditor.edit[1]) ~= '' then triggerServerEvent("support",localPlayer,guiGetText(GUIEditor.edit[1])) end end, false) addEvent("sendmessage2",true) addEventHandler("sendmessage2",root, function(Name,Text) local gg = guiGridListAddRow(GUIEditor.gridlist[1]) guiGridListSetItemText(GUIEditor.gridlist[1],gg, 1,Name .. " : " .. Text , false, false) guiGridListSetItemColor(GUIEditor.gridlist[1],gg, 1, 0, 255, 0, 255) if ( guiCheckBoxGetSelected( GUIEditor.checkbox[1] ) == true ) then outputChatBox("#ffff00 *[support-System] "..Name.." : #ffffff"..guiGetText(GUIEditor.edit[1]),255,255,0,true) end end) برده لما ببعت رساله مش بيتحذف من الايديت Link to comment
#|_oskar_|# Posted April 28, 2016 Share Posted April 28, 2016 addEventHandler("onClientGUIClick",GUIEditor.button[1],function () if guiGetText(GUIEditor.edit[1]) ~= '' then triggerServerEvent("support",localPlayer,guiGetText(GUIEditor.edit[1])) guiSetText (GUIEditor.edit[1]), "" ) end end, false) Link to comment
Adham Posted April 28, 2016 Author Share Posted April 28, 2016 ما صارت اللوحة تفتح لما شلت الكود ذا guiSetText (GUIEditor.edit[1]), "" ) فتحت عادي + عاوز ذي اسمه يجي بدون اكواد guiGridListSetItemText(GUIEditor.gridlist[1],gg, 1,Name .. " : " .. Text , false, false) Link to comment
#|_oskar_|# Posted April 28, 2016 Share Posted April 28, 2016 guiGridListSetItemText(GUIEditor.gridlist[1],gg, 1,Name:gsub("#%x%x%x%x%x%x", "") .. " : " .. Text , false, false) Link to comment
Adham Posted April 28, 2016 Author Share Posted April 28, 2016 طيب انا عاوز اليتمسح لما يضعط علي سند يتمسح الكلام الهوا كتبو addEventHandler("onClientGUIClick",GUIEditor.button[1],function () if guiGetText(GUIEditor.edit[1]) ~= '' then triggerServerEvent("support",localPlayer,guiGetText(GUIEditor.edit[1])) guiSetText (GUIEditor.edit[1]), "" ) end end, false) Link to comment
[iMr]-W[i]Fi,.! Posted April 28, 2016 Share Posted April 28, 2016 addEventHandler("onClientGUIClick",GUIEditor.button[1],function () if guiGetText(GUIEditor.edit[1]) ~= '' then triggerServerEvent("support",localPlayer,guiGetText(GUIEditor.edit[1])) guiSetText (GUIEditor.edit[1], " " ) end end, false) 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