developer Posted February 19, 2015 Share Posted February 19, 2015 ليش الكود مش شغال ليش الوحه مش بتفتح صارلي ساعه احاول CLIENT SIDE -- local window = guiCreateWindow(327, 128, 650, 463, "BY IIwantedII", false) guiWindowSetSizable(window, false) guiSetProperty(window, "CaptionColour", "FF135AEB") local gridlist = guiCreateGridList(9, 19, 631, 353, false, window) local column = guiGridListAddColumn(gridlist, "", 0.9) local edit = guiCreateEdit(15, 402, 309, 51, "", false, window) local player = guiCreateButton(333, 402, 155, 51, "PLAYER", false, window) guiSetProperty(player, "NormalTextColour", "FF091AF3") local support = guiCreateButton(501, 400, 139, 53, "SUPPORT", false, window) guiSetProperty(support, "NormalTextColour", "FFFA0101") 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 == player then local Text = guiGetText(edit) if Text ~= "" then guiSetText(edit, "") guiSetEnabled(player,false) setTimer(function()guiSetEnabled(player,true) end,2000,1) triggerServerEvent("player", localPlayer, Text) end end addEvent("player2", true) addEventHandler("player2", root, function(Text) local row = guiGridListAddRow(gridlist) local playerName = getPlayerName(source) local fText = "PLAYER:"..playerName..":"..Text.. "." guiGridListSetItemText(gridlist, row, column, fText , false, false) end) addEventHandler("onClientGUIClick", root, function() if source == support then local Text = guiGetText(edit) if Text ~= "" then guiSetText(edit, "") guiSetEnabled(support,false) setTimer(function()guiSetEnabled(support,true) end,2000,1) triggerServerEvent("support", localPlayer, Text) end end addEvent("support2", true) addEventHandler("support2", root, function(Text) local row2 = guiGridListAddRow(gridlist) local playerName2 = getPlayerName(source) local fText2 = "SUPPORT:"..playerName2..":"..Text.. "." guiGridListSetItemText(gridlist, row2, column, fText2 , false, false) end) SERVER SIDE ________________________________ addEvent("player", true) addEventHandler("player", root, function(Text) for i, player in ipairs(getElementsByType("player")) do triggerClientEvent(player, "player2", source, Text) end end) addEvent("support", true) addEventHandler("support", root, function(Text) for i, player in ipairs(getElementsByType("player")) do triggerClientEvent(player, "support2", source, Text) end end) Link to comment
UAEpro Posted February 19, 2015 Share Posted February 19, 2015 if guiGetVisible(window) == true then Link to comment
TAPL Posted February 19, 2015 Share Posted February 19, 2015 سطر 49 و سطر 79 القوس بعد الأند مو موجود Link to comment
developer Posted February 19, 2015 Author Share Posted February 19, 2015 لسا مش شغال وش الحل Link to comment
TAPL Posted February 19, 2015 Share Posted February 19, 2015 اكتب في اف8 debugscript 3 فيه اند ناقص مع القوس بالأسطر 49 و 79 يحتاجون اند if و for و function لاحظ ان كل Link to comment
developer Posted February 19, 2015 Author Share Posted February 19, 2015 الوحه الحين صارت تفتح لاكن لما اكتب شيء في السبورت سيستم ليش الشيء يتكتب مرتين ؟؟؟؟؟؟؟ Link to comment
iMr.TZ[W]ER Posted February 19, 2015 Share Posted February 19, 2015 ممكن المشكلة انه مسوي زر اسمه player ولوكل بعد اظن هذي المشكلة Link to comment
developer Posted February 20, 2015 Author Share Posted February 20, 2015 شباااب ليش لما اكتب الكتابه تتكرر مرتين Link to comment
developer Posted February 20, 2015 Author Share Posted February 20, 2015 في السبورت سيستم اكتب شيء تكرر.مرتين ارجو حل Link to comment
The Killer Posted February 20, 2015 Share Posted February 20, 2015 اطرح كودك بعد التعديل Link to comment
developer Posted February 20, 2015 Author Share Posted February 20, 2015 لو ابي الون الكلام ال يطلع في السبورت سيستك كيف اسوي Link to comment
TAPL Posted February 20, 2015 Share Posted February 20, 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