developer Posted February 17, 2015 Share Posted February 17, 2015 ليش الوحه مش بتفتح GUIEditor = { gridlist = {}, window = {}, button = {}, edit = {} } addEventHandler("onClientResourceStart", resourceRoot, function() local window = guiCreateWindow(302, 106, 692, 478, "BY IIwantedII", false) guiWindowSetSizable(window, false) guiSetProperty(window, "CaptionColour", "FF301EDE") local gridlist = guiCreateGridList(14, 26, 664, 339, false, window) local column = guiGridListAddColumn(gridlist, "", 0.9) local edit = guiCreateEdit(53, 402, 341, 59, "", false, window) local button = guiCreateButton(487, 403, 186, 65, "SEND", false, window) guiSetProperty(button, "NormalTextColour", "FF85C836") end ) function OpenWin() if guiGetVisible(window) then guiSetVisible(window, false) showCursor(false) else guiSetVisible(window, true) showCursor(true) end end bindKey("F5", "down", OpenWin) addEventHandler("onClientGUIClick", root, function() if source == button then local Text = guiGetText(edit) if Text ~= "" then guiSetText(edit, "") triggerServerEvent("IIwantedII", localPlayer, Text) end end end) addEvent("sendTheText", true) addEventHandler("sendTheText", root, function(Text) local row = guiGridListAddRow(gridlist) local playerName = getPlayerName(source) local fText = playerName..":"..Text:"BY IIwantedII" guiGridListSetItemText(myGridList, row, myColumn, fText , false, false) end) Link to comment
</Mr.Tn6eL> Posted February 17, 2015 Share Posted February 17, 2015 addEventHandler("onClientResourceStart", resourceRoot, function() window = guiCreateWindow(302, 106, 692, 478, "BY IIwantedII", false) guiWindowSetSizable(window, false) guiSetProperty(window, "CaptionColour", "FF301EDE") gridlist = guiCreateGridList(14, 26, 664, 339, false, window) column = guiGridListAddColumn(gridlist, "", 0.9) edit = guiCreateEdit(53, 402, 341, 59, "", false, window) button = guiCreateButton(487, 403, 186, 65, "SEND", false, window) guiSetProperty(button, "NormalTextColour", "FF85C836") end ) Link to comment
iPrestege Posted February 17, 2015 Share Posted February 17, 2015 حبيبي فية كود يساعدك تعرف الخطأ وتساعدنا اذا ماعرفت تصححة اكتب /debugscript 3 وقولنا وش يطلع لك .. Link to comment
TAPL Posted February 18, 2015 Share Posted February 18, 2015 كودك فيه خطأين onClientResourceStart الخطأ الأول انت حاط المتغيرات لوكل داخل افنت إذا حطيتهم لوكل يعني ما راح تكون المتغيرات موجودة خارج الأفنت و عموماً الأفنت ما له داعي انت ما تستخدمة يعني ماله داعي وجودة بالكود GUIEditor و الجدول الخطأ الثاني في السطر ذا local fText = playerName..":"..Text:"BY IIwantedII" الصحيح كذا local fText = playerName..":"..Text..": BY IIwantedII" بس وش الهدف حاط اسمك هنا؟ Link to comment
developer Posted February 18, 2015 Author Share Posted February 18, 2015 هههههههه تشكر يا تابل Link to comment
developer Posted February 18, 2015 Author Share Posted February 18, 2015 يا تابل تعال سكايب في شيء مش فهمو قي كودك Link to comment
developer Posted February 18, 2015 Author Share Posted February 18, 2015 و انا لازم افهم كل شيء Link to comment
nxFairlywell Posted February 18, 2015 Share Posted February 18, 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