Jump to content

عددلولي عل كود مبيشتغلش


developer

Recommended Posts

ليش الوحه مش بتفتح

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
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

كودك فيه خطأين

onClientResourceStart الخطأ الأول انت حاط المتغيرات لوكل داخل افنت

إذا حطيتهم لوكل يعني ما راح تكون المتغيرات موجودة خارج الأفنت

و عموماً الأفنت ما له داعي

انت ما تستخدمة يعني ماله داعي وجودة بالكود GUIEditor و الجدول

الخطأ الثاني في السطر ذا

local fText = playerName..":"..Text:"BY IIwantedII" 

الصحيح كذا

local fText = playerName..":"..Text..": BY IIwantedII" 

بس وش الهدف حاط اسمك هنا؟ :lol:

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...