Adham Posted May 28, 2016 Share Posted May 28, 2016 سلام غليكم انا مسوي سبورت سيستم وعامل اذا ضعط علي send يكنب في القريد لست انا عاوز لما يضعط انتر يسوي الكتابه Link to comment
SycroX Posted May 28, 2016 Share Posted May 28, 2016 تبي تفهمني انك سويت سبورت كاملة و ما عرفت تسوي دي bindKey guiGridListAddRow guiGridListSetItemText guiGetText Link to comment
Adham Posted May 28, 2016 Author Share Posted May 28, 2016 ي حبيبي في حدث اسمه حاجه Enter ابي وش اسمه Link to comment
TAPL Posted May 28, 2016 Share Posted May 28, 2016 https://wiki.multitheftauto.com/wiki/OnClientGUIAccepted Link to comment
Adham Posted May 28, 2016 Author Share Posted May 28, 2016 شو الخطا هنا تابل function ( Adham ) if guiGetText(GUIEditor.edit[1]) ~= '' then triggerServerEvent("support",localPlayer,guiGetText(GUIEditor.edit[1])) guiSetText (GUIEditor.edit[1], "" ) else guiSetEnabled(GUIEditor.button[1], false) setTimer(guiSetEnabled, 3000, 1, GUIEditor.button[1], true) end end, false) addEvent("sendmessage2",true) addEventHandler("sendmessage2",root, function(Name,Text) local hour = getRealTime().hour local minute = getRealTime().minute local second = getRealTime().second+1 local gg = guiGridListAddRow(GUIEditor.gridlist[1]) guiGridListSetItemText(GUIEditor.gridlist[1],gg, 1, "["..tostring(hour)..":"..tostring(minute)..":" ..tostring(second).."]x "..Name:gsub("#%x%x%x%x%x%x", "") ..": " .. Text , false, false) guiGridListSetItemColor(GUIEditor.gridlist[1],gg, 1, 0, 255, 0, 255) if ( guiCheckBoxGetSelected( GUIEditor.checkbox[2] ) == true ) then outputChatBox("[support-System] #FF0000"..Name.."#FFFFFF : "..guiGetText(GUIEditor.edit[1]).." ",255,255,0,true) end end) addEventHandler('onClientGUIClick',GUIEditor.button[1],Adham) addEventHandler( "onClientGUIAccepted",GUIEditor.edit[1],Adham) Link to comment
Froze Posted May 28, 2016 Share Posted May 28, 2016 اسم الفنكشن ما يكون داخل القوس يكون قبله Link to comment
#Soking Posted May 28, 2016 Share Posted May 28, 2016 function ( Adham ) if guiGetText(GUIEditor.edit[1]) ~= '' then triggerServerEvent("support",localPlayer,guiGetText(GUIEditor.edit[1])) guiSetText (GUIEditor.edit[1], "" ) else guiSetEnabled(GUIEditor.button[1], false) setTimer(guiSetEnabled, 3000, 1, GUIEditor.button[1], true) end end, false) addEvent("sendmessage2",true) addEventHandler("sendmessage2",root, function(Name,Text) local hour = getRealTime().hour local minute = getRealTime().minute local second = getRealTime().second+1 local gg = guiGridListAddRow(GUIEditor.gridlist[1]) guiGridListSetItemText(GUIEditor.gridlist[1],gg, 1, "["..tostring(hour)..":"..tostring(minute)..":" ..tostring(second).."]x "..Name:gsub("#%x%x%x%x%x%x", "") ..": " .. Text , false, false) guiGridListSetItemColor(GUIEditor.gridlist[1],gg, 1, 0, 255, 0, 255) if ( guiCheckBoxGetSelected( GUIEditor.checkbox[2] ) == true ) then outputChatBox("[support-System] #FF0000"..Name.."#FFFFFF : "..guiGetText(GUIEditor.edit[1]).." ",255,255,0,true) end end) addEventHandler('onClientGUIClick',GUIEditor.button[1],Adham) addEventHandler( "onClientGUIAccepted",GUIEditor.edit[1],Adham) وين الفنكشن يلي اسمه Adham ؟ + وش سالفة دا ؟ function ( Adham ) Link to comment
#Soking Posted May 28, 2016 Share Posted May 28, 2016 انا ناسخ كودك واسالك كم سؤال وش هو يلي مازبط Link to comment
#Soking Posted May 28, 2016 Share Posted May 28, 2016 function Adham( ) local Text = guiGetText(GUIEditor.edit[1]) if ( Text ~= "") and ( Text ~= " ") then triggerServerEvent("support",localPlayer,guiGetText(GUIEditor.edit[1])) guiSetText (GUIEditor.edit[1], "" ) else guiSetEnabled(GUIEditor.button[1], false) setTimer(guiSetEnabled, 3000, 1, GUIEditor.button[1], true) end end, false ) addEvent("sendmessage2",true) addEventHandler("sendmessage2",root, function(Name,Text) local Text, hour , minute , second = ( guiGetText(GUIEditor.edit[1]) ,( getRealTime().hour ) , ( getRealTime().minute ) , ( getRealTime().second+1 ) local Grid = guiGridListAddRow(GUIEditor.gridlist[1]) guiGridListSetItemText(GUIEditor.gridlist[1],Grid, 1, "["..tostring(hour)..":"..tostring(minute)..":" ..tostring(second).."]x "..Name:gsub("#%x%x%x%x%x%x", "") ..": " .. Text , false, false) guiGridListSetItemColor(GUIEditor.gridlist[1],Grid, 1, 0, 255, 0, 255) if ( guiCheckBoxGetSelected( GUIEditor.checkbox[2] ) == true ) then outputChatBox("[support-System] #FF0000"..Name.."#FFFFFF : "..guiGetText(GUIEditor.edit[1]).." ",255,255,0,true) end end ) addEventHandler('onClientGUIClick',GUIEditor.button[1],Adham) addEventHandler( "onClientGUIAccepted",GUIEditor.edit[1],Adham) Link to comment
#Soking Posted May 28, 2016 Share Posted May 28, 2016 function Adham( ) local Text = guiGetText(GUIEditor.edit[1]) if ( Text ~= "") and ( Text ~= " ") then triggerServerEvent("support",localPlayer,Text) guiSetText (GUIEditor.edit[1], "" ) else guiSetEnabled(GUIEditor.button[1], false) setTimer(guiSetEnabled, 3000, 1, GUIEditor.button[1], true) end end, false ) addEvent("sendmessage2",true) addEventHandler("sendmessage2",root, function(Name,Text) local Text, hour , minute , second = ( guiGetText(GUIEditor.edit[1]) ,( getRealTime().hour ) , ( getRealTime().minute ) , ( getRealTime().second+1 ) local Grid = guiGridListAddRow(GUIEditor.gridlist[1]) guiGridListSetItemText(GUIEditor.gridlist[1],Grid, 1, "["..tostring(hour)..":"..tostring(minute)..":" ..tostring(second).."]x "..Name:gsub("#%x%x%x%x%x%x", "") ..": " .. Text , false, false) guiGridListSetItemColor(GUIEditor.gridlist[1],Grid, 1, 0, 255, 0, 255) if ( guiCheckBoxGetSelected( GUIEditor.checkbox[2] ) == true ) then outputChatBox("[support-System] #FF0000"..Name.."#FFFFFF : "..Text.." ",255,255,0,true) end end end ) addEventHandler('onClientGUIClick',GUIEditor.button[1],Adham) addEventHandler( "onClientGUIAccepted",GUIEditor.edit[1],Adham) Link to comment
#STZ Posted May 28, 2016 Share Posted May 28, 2016 جرب function Adham( ) local Text = guiGetText(GUIEditor.edit[1]) if ( Text ~= "") and ( Text ~= " ") then triggerServerEvent("support",localPlayer,guiGetText(GUIEditor.edit[1])) guiSetText (GUIEditor.edit[1], "" ) else guiSetEnabled(GUIEditor.button[1], false) setTimer(guiSetEnabled, 3000, 1, GUIEditor.button[1], true) end end, false ) addEventHandler("sendmessage2",root, function Name,Text( ) local Text, hour , minute , second = ( guiGetText(GUIEditor.edit[1]) ,( getRealTime().hour ) , ( getRealTime().minute ) , ( getRealTime().second+1 ) local Grid = guiGridListAddRow(GUIEditor.gridlist[1]) guiGridListSetItemText(GUIEditor.gridlist[1],Grid, 1, "["..tostring(hour)..":"..tostring(minute)..":" ..tostring(second).."]x "..Name:gsub("#%x%x%x%x%x%x", "") ..": " .. Text , false, false) guiGridListSetItemColor(GUIEditor.gridlist[1],Grid, 1, 0, 255, 0, 255) if ( guiCheckBoxGetSelected( GUIEditor.checkbox[2] ) == true ) then outputChatBox("[support-System] #FF0000"..Name.."#FFFFFF : "..guiGetText(GUIEditor.edit[1]).." ",255,255,0,true) end end ) addEventHandler('onClientGUIClick',GUIEditor.button[1],Adham) addEventHandler( "onClientGUIAccepted",GUIEditor.edit[1],Adham) Link to comment
Adham Posted May 28, 2016 Author Share Posted May 28, 2016 جربو ما راح يظبت في اي لوحة ^ Link to comment
#Soking Posted May 28, 2016 Share Posted May 28, 2016 يا نوب اطرح الاكواد مشان اجربه عليها و لو في اخطاء اعدلها وخلاص Link to comment
SycroX Posted May 29, 2016 Share Posted May 29, 2016 function Adham( ) local Text = guiGetText(GUIEditor.edit[1]) if ( Text ~= "") and ( Text ~= " ") then triggerServerEvent("support",localPlayer,Text) guiSetText (GUIEditor.edit[1], "" ) else guiSetEnabled(GUIEditor.button[1], false) setTimer(guiSetEnabled, 3000, 1, GUIEditor.button[1], true) end end, false ) addEvent("sendmessage2",true) addEventHandler("sendmessage2",root, function(Name,Text) local Text, hour , minute , second = ( guiGetText(GUIEditor.edit[1]) ,( getRealTime().hour ) , ( getRealTime().minute ) , ( getRealTime().second+1 ) local Grid = guiGridListAddRow(GUIEditor.gridlist[1]) guiGridListSetItemText(GUIEditor.gridlist[1],Grid, 1, "["..tostring(hour)..":"..tostring(minute)..":" ..tostring(second).."]x "..Name:gsub("#%x%x%x%x%x%x", "") ..": " .. Text , false, false) guiGridListSetItemColor(GUIEditor.gridlist[1],Grid, 1, 0, 255, 0, 255) if ( guiCheckBoxGetSelected( GUIEditor.checkbox[2] ) == true ) then outputChatBox("[support-System] #FF0000"..Name.."#FFFFFF : "..Text.." ",255,255,0,true) end end end ) addEventHandler('onClientGUIClick',GUIEditor.button[1],Adham) addEventHandler( "onClientGUIAccepted",GUIEditor.edit[1],Adham) سوكينج كودك به اشياء غلط مثل if ( Text ~= "") and ( Text ~= " ") then كيف تباه يتحقق من الأتنين هيك المفروض تبقا if ( Text ~= "") or ( Text ~= " ") then و else شو وضعها function Adham() local Text = guiGetText(GUIEditor.edit[1]) if ( Text ~= "") or ( Text ~= " ") then triggerServerEvent("support",localPlayer,Text) guiSetText (GUIEditor.edit[1], "" ) guiSetEnabled(GUIEditor.button[1], false) setTimer(guiSetEnabled, 3000, 1, GUIEditor.button[1], true) end end addEventHandler('onClientGUIClick',GUIEditor.button[1], Adham) addEventHandler( "onClientGUIAccepted",GUIEditor.edit[1], Adham) addEvent("sendmessage2",true) addEventHandler("sendmessage2",root, function(Name,Text) local Text, hour , minute , second = ( guiGetText(GUIEditor.edit[1]) ,( getRealTime().hour ) , ( getRealTime().minute ) , ( getRealTime().second+1 ) local Grid = guiGridListAddRow(GUIEditor.gridlist[1]) guiGridListSetItemText(GUIEditor.gridlist[1],Grid, 1, "["..tostring(hour)..":"..tostring(minute)..":" ..tostring(second).."]x "..Name:gsub("#%x%x%x%x%x%x", "") ..": " .. Text , false, false) guiGridListSetItemColor(GUIEditor.gridlist[1],Grid, 1, 0, 255, 0, 255) if ( guiCheckBoxGetSelected( GUIEditor.checkbox[2] ) == true ) then outputChatBox("[support-System] #FF0000"..Name.."#FFFFFF : "..Text.." ",255,255,0,true) end end 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