ivor Posted April 12, 2016 Share Posted April 12, 2016 السلام عليكم طبعآ في موضوع السبورت حقي والتريقرات في طلب الفنكشنات الى فات و ما حد شاف حل قولت بشوف انا واظبط طيب وظبطتها انا بس ابي الكود هاد elseif source == Button_Send then local Msg = guiGetText(Edit_Msg) if getElementData(localPlayer, "Sup-Mute") == "true" then exports["guimessages"]:outputClient("You Are Muted ! Please Read Rules Again", 255, 0, 0) return end if Msg ~= "" then triggerServerEvent("Request_Message", localPlayer, Msg) guiSetText(Edit_Msg, "") guiSetEnabled(Button_Send, false) setTimer(function () guiSetEnabled(Button_Send, true) end, 1000, 0) end end end ) بدل الزر يتحول الى enter جربت مانفعت و مسحت الاكواد الى جربتها كانت هريسة Link to comment
ivor Posted April 13, 2016 Author Share Posted April 13, 2016 وش يظهر لك في دي بق ؟ دة الكود الاصلي قبل التعديل الي بعد التعديل هرييسة ومسحته كان كله غلط Link to comment
iMr.WiFi..! Posted April 13, 2016 Share Posted April 13, 2016 طيب شو المطلوب لنا نسوي ؟ Link to comment
SycroX Posted April 13, 2016 Share Posted April 13, 2016 دي سبورت دابل صح ؟ استخدم bindKey و حاول و اطرح الكود و احنا نصلحو لك Link to comment
#|_oskar_|# Posted April 13, 2016 Share Posted April 13, 2016 bindKey("enter","down", function (key, keyState ) elseif ( keyState == "down" ) then local Msg = guiGetText(Edit_Msg) if getElementData(localPlayer, "Sup-Mute") == "true" then exports["guimessages"]:outputClient("You Are Muted ! Please Read Rules Again", 255, 0, 0) return end if Msg ~= "" then triggerServerEvent("Request_Message", localPlayer, Msg) guiSetText(Edit_Msg, "") guiSetEnabled(Button_Send, false) setTimer(function () guiSetEnabled(Button_Send, true) end, 1000, 0) end end end ) Link to comment
SycroX Posted April 13, 2016 Share Posted April 13, 2016 bindKey("enter","down", function (key, keyState ) elseif ( keyState == "down" ) then local Msg = guiGetText(Edit_Msg) if getElementData(localPlayer, "Sup-Mute") == "true" then exports["guimessages"]:outputClient("You Are Muted ! Please Read Rules Again", 255, 0, 0) return end if Msg ~= "" then triggerServerEvent("Request_Message", localPlayer, Msg) guiSetText(Edit_Msg, "") guiSetEnabled(Button_Send, false) setTimer(function () guiSetEnabled(Button_Send, true) end, 1000, 0) end end end ) خله يتعلم بدل ما هو شغال علي شغل نسخ لصق bindKey("enter","down", function (key, keyState ) if ( keyState == "down" ) then local Msg = guiGetText(Edit_Msg) if getElementData(localPlayer, "Sup-Mute") == "true" then exports["guimessages"]:outputClient("You Are Muted ! Please Read Rules Again", 255, 0, 0) return end if Msg ~= "" then triggerServerEvent("Request_Message", localPlayer, Msg) guiSetText(Edit_Msg, "") guiSetEnabled(Button_Send, false) setTimer(function () guiSetEnabled(Button_Send, true) end, 1000, 0) end end end end ) Link to comment
ivor Posted April 13, 2016 Author Share Posted April 13, 2016 ماظبطت وهاد الى يطلع بالدي بق ERROR: Loading script failed: اسم المود : ')' expected (to close '(' at line 204) near 'end' Link to comment
ivor Posted April 13, 2016 Author Share Posted April 13, 2016 addEventHandler("onClientGUIClick", root, function () if source == Button_Close then guiSetVisible(wnd, false) guiSetVisible(Rules_Window, false) guiSetInputEnabled(false) elseif source == Button_Close1 then guiSetVisible(wnd, false) guiSetVisible(Rules_Window1, false) guiSetInputEnabled(false) elseif source == Mute_UnMute then guiSetVisible(Mute_Window, not guiGetVisible(Mute_Window)) guiBringToFront(Mute_Window) elseif source == Close_Mute_Window then guiSetVisible(Mute_Window, false) elseif source == Clear_Chat then triggerServerEvent("Request_Permission", localPlayer) elseif source == Mute_Mute then local grid = guiGridListGetItemText(mute_gridlist, guiGridListGetSelectedItem(mute_gridlist), 1) triggerServerEvent("Mute", localPlayer, grid) elseif source == RulesButton then guiSetVisible(Rules_Window, not guiGetVisible(Rules_Window)) guiBringToFront(Rules_Window) elseif source == Close then guiSetVisible(Rules_Window, false) bindKey("enter","down", function (key, keyState ) elseif ( keyState == "down" ) then local Msg = guiGetText(Edit_Msg) if getElementData(localPlayer, "Sup-Mute") == "true" then exports["guimessages"]:outputClient("You Are Muted ! Please Read Rules Again", 255, 0, 0) return end if Msg ~= "" then triggerServerEvent("Request_Message", localPlayer, Msg) guiSetText(Edit_Msg, "") guiSetEnabled(Button_Send, false) setTimer(function () guiSetEnabled(Button_Send, true) end, 1000, 0) end end end ) كود الازرار كامل Link to comment
#|_oskar_|# Posted April 13, 2016 Share Posted April 13, 2016 addEventHandler("onClientGUIClick", root, function () if source == Button_Close then guiSetVisible(wnd, false) guiSetVisible(Rules_Window, false) guiSetInputEnabled(false) elseif source == Button_Close1 then guiSetVisible(wnd, false) guiSetVisible(Rules_Window1, false) guiSetInputEnabled(false) elseif source == Mute_UnMute then guiSetVisible(Mute_Window, not guiGetVisible(Mute_Window)) guiBringToFront(Mute_Window) elseif source == Close_Mute_Window then guiSetVisible(Mute_Window, false) elseif source == Clear_Chat then triggerServerEvent("Request_Permission", localPlayer) elseif source == Mute_Mute then local grid = guiGridListGetItemText(mute_gridlist, guiGridListGetSelectedItem(mute_gridlist), 1) triggerServerEvent("Mute", localPlayer, grid) elseif source == RulesButton then guiSetVisible(Rules_Window, not guiGetVisible(Rules_Window)) guiBringToFront(Rules_Window) elseif source == Close then guiSetVisible(Rules_Window, false) end end) bindKey("enter","down", function (key, keyState ) if ( keyState == "down" ) then local Msg = guiGetText(Edit_Msg) if getElementData(localPlayer, "Sup-Mute") == "true" then exports["guimessages"]:outputClient("You Are Muted ! Please Read Rules Again", 255, 0, 0) return end if Msg ~= "" then triggerServerEvent("Request_Message", localPlayer, Msg) guiSetText(Edit_Msg, "") guiSetEnabled(Button_Send, false) setTimer(function () guiSetEnabled(Button_Send, true) end, 1000, 0) end end end) Link to comment
ivor Posted April 13, 2016 Author Share Posted April 13, 2016 (edited) اكتب الكلام وادوس انتر والزر لا يبعت الرسالة Edited April 13, 2016 by Guest Link to comment
bebo1king Posted April 13, 2016 Share Posted April 13, 2016 addEventHandler("onClientGUIClick", root, function () if source == Button_Close then guiSetVisible(wnd, false) guiSetVisible(Rules_Window, false) guiSetInputEnabled(false) elseif source == Button_Close1 then guiSetVisible(wnd, false) guiSetVisible(Rules_Window1, false) guiSetInputEnabled(false) elseif source == Mute_UnMute then guiSetVisible(Mute_Window, not guiGetVisible(Mute_Window)) guiBringToFront(Mute_Window) elseif source == Close_Mute_Window then guiSetVisible(Mute_Window, false) elseif source == Clear_Chat then triggerServerEvent("Request_Permission", localPlayer) elseif source == Mute_Mute then local grid = guiGridListGetItemText(mute_gridlist, guiGridListGetSelectedItem(mute_gridlist), 1) triggerServerEvent("Mute", localPlayer, grid) elseif source == RulesButton then guiSetVisible(Rules_Window, not guiGetVisible(Rules_Window)) guiBringToFront(Rules_Window) elseif source == Close then guiSetVisible(Rules_Window, false) bindKey("enter","down", function (key, keyState ) elseif ( keyState == "down" ) then local Msg = guiGetText(Edit_Msg) if getElementData(localPlayer, "Sup-Mute") == "true" then exports["guimessages"]:outputClient("You Are Muted ! Please Read Rules Again", 255, 0, 0) return end if Msg ~= "" then triggerServerEvent("Request_Message", localPlayer, Msg) guiSetText(Edit_Msg,Msg) guiSetEnabled(Button_Send, false) setTimer(guiSetEnabled,1000,1,Button_Send, true) end end end end ) Link to comment
#|_oskar_|# Posted April 13, 2016 Share Posted April 13, 2016 وش سويت جديد نفس الكود اللى طرحه ماغيرت شئ؟ وفي نفس الخطاء Link to comment
bebo1king Posted April 13, 2016 Share Posted April 13, 2016 وش سويت جديد نفس الكود اللى طرحه ماغيرت شئ؟ وفي نفس الخطاء انا ؟ Link to comment
Jupi Posted April 13, 2016 Share Posted April 13, 2016 addEventHandler("onClientGUIClick", root, function () if source == Button_Close then guiSetVisible(wnd, false) guiSetVisible(Rules_Window, false) guiSetInputEnabled(false) elseif source == Button_Close1 then guiSetVisible(wnd, false) guiSetVisible(Rules_Window1, false) guiSetInputEnabled(false) elseif source == Mute_UnMute then guiSetVisible(Mute_Window, not guiGetVisible(Mute_Window)) guiBringToFront(Mute_Window) elseif source == Close_Mute_Window then guiSetVisible(Mute_Window, false) elseif source == Clear_Chat then triggerServerEvent("Request_Permission", localPlayer) elseif source == Mute_Mute then local grid = guiGridListGetItemText(mute_gridlist, guiGridListGetSelectedItem(mute_gridlist), 1) triggerServerEvent("Mute", localPlayer, grid) elseif source == RulesButton then guiSetVisible(Rules_Window, not guiGetVisible(Rules_Window)) guiBringToFront(Rules_Window) elseif source == Close then guiSetVisible(Rules_Window, false) bindKey("enter","down", function (key, keyState ) elseif ( keyState == "down" ) then local Msg = guiGetText(Edit_Msg) if getElementData(localPlayer, "Sup-Mute") == "true" then exports["guimessages"]:outputClient("You Are Muted ! Please Read Rules Again", 255, 0, 0) return end if Msg ~= "" then triggerServerEvent("Request_Message", localPlayer, Msg) guiSetText(Edit_Msg,Msg) guiSetEnabled(Button_Send, false) setTimer(guiSetEnabled,1000,1,Button_Send, true) end end end end ) كودك خربان يالاخ جالس تخبص انت هخهخههخه bindKey("enter","down", function (key, keyState ) elseif ( keyState == "down" ) then local Msg = guiGetText(Edit_Msg) if getElementData(localPlayer, "Sup-Mute") == "true" then exports["guimessages"]:outputClient("You Are Muted ! Please Read Rules Again", 255, 0, 0) return end if Msg ~= "" then triggerServerEvent("Request_Message", localPlayer, Msg) guiSetText(Edit_Msg,Msg) guiSetEnabled(Button_Send, false) setTimer(guiSetEnabled,1000,1,Button_Send, true) end end Link to comment
Me[Z]oO Posted April 13, 2016 Share Posted April 13, 2016 اظن المود حق @DABL اظن ان الاكواد المسروقة ممنوعة هنا https://forum.multitheftauto.com/viewtopic.php?f ... 87#p868153 Link to comment
ivor Posted April 13, 2016 Author Share Posted April 13, 2016 اظن المود حق @DABLاظن ان الاكواد المسروقة ممنوعة هنا https://forum.multitheftauto.com/viewtopic.php?f ... 87#p868153 انا ماسرقت شي والله Link to comment
ivor Posted April 14, 2016 Author Share Posted April 14, 2016 :arrowup: شوفوه ياعااااااالم 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