Jump to content

ما هو الخطا


FAHD+18

Recommended Posts

local Key = "F1" 


GUIEditor = {
    edit = {},
    button = {},
    window = {},
    label = {},
    gridlist = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
    function()
        GUIEditor.window[1] = guiCreateWindow(190, 166, 405, 305, "Admin x2", false)
        guiWindowSetSizable(GUIEditor.window[1], false)

        GUIEditor.gridlist = guiCreateGridList(10, 62, 134, 233, false, GUIEditor.window[1])
        guiGridListAddColumn(GUIEditor.gridlist, "Players:", 0.9)
        GUIEditor.edit[1] = guiCreateEdit(18, 38, 116, 19, "", false, GUIEditor.window[1])
        GUIEditor.label[1] = guiCreateLabel(55, 23, 99, 15, "Search ", false, GUIEditor.window[1])
        guiSetFont(GUIEditor.label[1], "default-bold-small")
        GUIEditor.button[1] = guiCreateButton(172, 62, 184, 35, "Mute", false, GUIEditor.window[1])
        guiSetFont(GUIEditor.button[1], "default-bold-small")
        GUIEditor.edit[2] = guiCreateEdit(154, 118, 227, 30, "", false, GUIEditor.window[1])

        GUIEditor.label[2] = guiCreateLabel(47, -14, 170, 15, "What is Resson", false, GUIEditor.edit[2])

        GUIEditor.label[3] = guiCreateLabel(210, 97, 120, 15, "What is The Resson :", false, GUIEditor.window[1])
        guiSetFont(GUIEditor.label[3], "default-bold-small")
        GUIEditor.button[2] = guiCreateButton(164, 155, 94, 20, "Slap", false, GUIEditor.window[1])
        GUIEditor.button[3] = guiCreateButton(277, 155, 94, 20, "Kick", false, GUIEditor.window[1])
        GUIEditor.button[4] = guiCreateButton(163, 193, 208, 29, "Fly Car", false, GUIEditor.window[1])
        GUIEditor.button[5] = guiCreateButton(163, 232, 94, 20, "FIX", false, GUIEditor.window[1])
        GUIEditor.button[6] = guiCreateButton(277, 232, 94, 20, "Nitro", false, GUIEditor.window[1])
        GUIEditor.label[4] = guiCreateLabel(163, 170, 212, 15, "______________________________", false, GUIEditor.window[1])
        GUIEditor.label[5] = guiCreateLabel(297, 283, 148, 18, "Creat by FAHD v2", false, GUIEditor.window[1])
        guiLabelSetColor(GUIEditor.label[5], 254, 0, 0)    
    end
)






bindKey(Key,"down", 
function()
	guiSetVisible(GUIEditor.window[1],not guiGetVisible(windowname))
	showCursor(guiGetVisible(GUIEditor.window[1])) 
end)

addEventHandler("onClientGUIClick",root,function() 
	if (source == buttonclose) then 
	guiSetVisible(GUIEditor.window[1],false) 
		showCursor(false) 
	end
end)

شباب ها الكود ما الخطا فية بعد اذنكم مساعدة :( 

Link to comment
local Key = "F1" 


GUIEditor = {
    edit = {},
    button = {},
    window = {},
    label = {},
    gridlist = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
    function()
        GUIEditor.window[1] = guiCreateWindow(190, 166, 405, 305, "Admin x2", false)
        guiWindowSetSizable(GUIEditor.window[1], false)

        GUIEditor.gridlist = guiCreateGridList(10, 62, 134, 233, false, GUIEditor.window[1])
        guiGridListAddColumn(GUIEditor.gridlist, "Players:", 0.9)
        GUIEditor.edit[1] = guiCreateEdit(18, 38, 116, 19, "", false, GUIEditor.window[1])
        GUIEditor.label[1] = guiCreateLabel(55, 23, 99, 15, "Search ", false, GUIEditor.window[1])
        guiSetFont(GUIEditor.label[1], "default-bold-small")
        GUIEditor.button[1] = guiCreateButton(172, 62, 184, 35, "Mute", false, GUIEditor.window[1])
        guiSetFont(GUIEditor.button[1], "default-bold-small")
        GUIEditor.edit[2] = guiCreateEdit(154, 118, 227, 30, "", false, GUIEditor.window[1])

        GUIEditor.label[2] = guiCreateLabel(47, -14, 170, 15, "What is Resson", false, GUIEditor.edit[2])

        GUIEditor.label[3] = guiCreateLabel(210, 97, 120, 15, "What is The Resson :", false, GUIEditor.window[1])
        guiSetFont(GUIEditor.label[3], "default-bold-small")
        GUIEditor.button[2] = guiCreateButton(164, 155, 94, 20, "Slap", false, GUIEditor.window[1])
        GUIEditor.button[3] = guiCreateButton(277, 155, 94, 20, "Kick", false, GUIEditor.window[1])
        GUIEditor.button[4] = guiCreateButton(163, 193, 208, 29, "Fly Car", false, GUIEditor.window[1])
        GUIEditor.button[5] = guiCreateButton(163, 232, 94, 20, "FIX", false, GUIEditor.window[1])
        GUIEditor.button[6] = guiCreateButton(277, 232, 94, 20, "Nitro", false, GUIEditor.window[1])
        GUIEditor.label[4] = guiCreateLabel(163, 170, 212, 15, "______________________________", false, GUIEditor.window[1])
        GUIEditor.label[5] = guiCreateLabel(297, 283, 148, 18, "Creat by FAHD v2", false, GUIEditor.window[1])
        guiLabelSetColor(GUIEditor.label[5], 254, 0, 0)   
		guiSetVisible ( GUIEditor.window[1], false )
    end
)


bindKey ( Key, "down", 
	function ( )
		if guiGetVisible ( GUIEditor.window[1] ) then 
			guiSetVisible ( GUIEditor.window[1], false )
			showCursor ( false )
		else
			guiSetVisible ( GUIEditor.window[1], true )
			showCursor ( true )
		end
	end
)

الغلط كان بهذا السطر 

 

	guiSetVisible(GUIEditor.window[1],not guiGetVisible(windowname))

	-- مافيه لوحة اسمها windowname

 

  • Like 1
Link to comment

انت مسوي وضيفة للوحة و ماراح تكون معرفة لـ كود فتح النافذة

الافضل انك تسوي كذا و تحذف الوضيفة للوحة و الحدث

او تضيف كود فتح الوحة في الوضيفة نفسها حقت الوحة

التعديل

local Key = "F1" 


GUIEditor = {
    edit = {},
    button = {},
    window = {},
    label = {},
    gridlist = {}
}

        GUIEditor.window[1] = guiCreateWindow(190, 166, 405, 305, "Admin x2", false)
        guiWindowSetSizable(GUIEditor.window[1], false)

        GUIEditor.gridlist = guiCreateGridList(10, 62, 134, 233, false, GUIEditor.window[1])
        guiGridListAddColumn(GUIEditor.gridlist, "Players:", 0.9)
        GUIEditor.edit[1] = guiCreateEdit(18, 38, 116, 19, "", false, GUIEditor.window[1])
        GUIEditor.label[1] = guiCreateLabel(55, 23, 99, 15, "Search ", false, GUIEditor.window[1])
        guiSetFont(GUIEditor.label[1], "default-bold-small")
        GUIEditor.button[1] = guiCreateButton(172, 62, 184, 35, "Mute", false, GUIEditor.window[1])
        guiSetFont(GUIEditor.button[1], "default-bold-small")
        GUIEditor.edit[2] = guiCreateEdit(154, 118, 227, 30, "", false, GUIEditor.window[1])

        GUIEditor.label[2] = guiCreateLabel(47, -14, 170, 15, "What is Resson", false, GUIEditor.edit[2])

        GUIEditor.label[3] = guiCreateLabel(210, 97, 120, 15, "What is The Resson :", false, GUIEditor.window[1])
        guiSetFont(GUIEditor.label[3], "default-bold-small")
        GUIEditor.button[2] = guiCreateButton(164, 155, 94, 20, "Slap", false, GUIEditor.window[1])
        GUIEditor.button[3] = guiCreateButton(277, 155, 94, 20, "Kick", false, GUIEditor.window[1])
        GUIEditor.button[4] = guiCreateButton(163, 193, 208, 29, "Fly Car", false, GUIEditor.window[1])
        GUIEditor.button[5] = guiCreateButton(163, 232, 94, 20, "FIX", false, GUIEditor.window[1])
        GUIEditor.button[6] = guiCreateButton(277, 232, 94, 20, "Nitro", false, GUIEditor.window[1])
        GUIEditor.label[4] = guiCreateLabel(163, 170, 212, 15, "______________________________", false, GUIEditor.window[1])
        GUIEditor.label[5] = guiCreateLabel(297, 283, 148, 18, "Creat by FAHD v2", false, GUIEditor.window[1])
        guiLabelSetColor(GUIEditor.label[5], 254, 0, 0)   
        guiSetVisible ( GUIEditor.window[1], false )


bindKey ( Key, "down", 
    function ( )
        if guiGetVisible ( GUIEditor.window[1] ) then 
            guiSetVisible ( GUIEditor.window[1], false )
            showCursor ( false )
        else
            guiSetVisible ( GUIEditor.window[1], true )
            showCursor ( true )
        end
    end
)

Edited by MrSAUD1
  • Like 1
Link to comment

ممكن سوال تاني ممكن اسكايبك 

local Key = "F1" 
GUIEditor = {
    edit = {},
    button = {},
    window = {},
    label = {},
    gridlist = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
    function()
        GUIEditor.window[1] = guiCreateWindow(190, 166, 405, 305, "Admin x2", false)
        guiWindowSetSizable(GUIEditor.window[1], false)
        GUIEditor.gridlist = guiCreateGridList(10, 62, 134, 233, false, GUIEditor.window[1])
        guiGridListAddColumn(GUIEditor.gridlist, "Players:", 0.9)
        GUIEditor.edit[1] = guiCreateEdit(18, 38, 116, 19, "", false, GUIEditor.window[1])
        GUIEditor.label[1] = guiCreateLabel(55, 23, 99, 15, "Search ", false, GUIEditor.window[1])
        guiSetFont(GUIEditor.label[1], "default-bold-small")
        GUIEditor.button[1] = guiCreateButton(172, 62, 184, 35, "Mute", false, GUIEditor.window[1])
        guiSetFont(GUIEditor.button[1], "default-bold-small")
        GUIEditor.edit[2] = guiCreateEdit(154, 118, 227, 30, "", false, GUIEditor.window[1])
        GUIEditor.label[2] = guiCreateLabel(47, -14, 170, 15, "What is Resson", false, GUIEditor.edit[2])
        GUIEditor.label[3] = guiCreateLabel(210, 97, 120, 15, "What is The Resson :", false, GUIEditor.window[1])
        guiSetFont(GUIEditor.label[3], "default-bold-small")
        GUIEditor.button[2] = guiCreateButton(164, 155, 94, 20, "Slap", false, GUIEditor.window[1])
        GUIEditor.button[3] = guiCreateButton(277, 155, 94, 20, "Kick", false, GUIEditor.window[1])
        GUIEditor.button[4] = guiCreateButton(163, 193, 208, 29, "Fly Car", false, GUIEditor.window[1])
        GUIEditor.button[5] = guiCreateButton(163, 232, 94, 20, "FIX", false, GUIEditor.window[1])
        GUIEditor.button[6] = guiCreateButton(277, 232, 94, 20, "Nitro", false, GUIEditor.window[1])
        GUIEditor.label[4] = guiCreateLabel(163, 170, 212, 15, "______________________________", false, GUIEditor.window[1])
        GUIEditor.label[5] = guiCreateLabel(297, 283, 148, 18, "Creat by FAHD v2", false, GUIEditor.window[1])
        guiLabelSetColor(GUIEditor.label[5], 254, 0, 0)   
		guiSetVisible ( GUIEditor.window[1], false )
    end
)
bindKey ( Key, "down", 
	function ( )
		if guiGetVisible ( GUIEditor.window[1] ) then 
			guiSetVisible ( GUIEditor.window[1], false )
			showCursor ( false )
		else
			guiSetVisible ( GUIEditor.window[1], true )
			showCursor ( true )
		end
	end
)

function Players ( )

guiGridListClear ( gridlist )

local Row = guiGridListAddRow ( gridlist )

for id, players in ipairs(getElementsByType("player")) do 

guiGridListSetItemText ( gridlist, Ros 1, getPlayerName ( players ), false, false )

end

addEventHandler( "onClientPlayerJoin", root, Players )
addEventHandler( "onClientPlayerQuit", root, Players )
addEventHandler( "onClientPlayerChangeNick", root, Players )

ما هو الخطا ! انا اتعلم برمجه ومعرف اخرج الخطا شباب معلش محتاج مساعدة 

Link to comment

اوهه طلع عندك اخطاء كثيره و منها اسم القريد ليست

و نااسي اند الانهاء حق الوضيفة حق القريد ليست

المهم التعديل كامل

 

local Key = "F1" 
GUIEditor = {
    edit = {},
    button = {},
    window = {},
    label = {},
    gridlist = {}
}

        GUIEditor.window[1] = guiCreateWindow(190, 166, 405, 305, "Admin x2", false)
        guiWindowSetSizable(GUIEditor.window[1], false)
        GUIEditor.gridlist[1] = guiCreateGridList(10, 62, 134, 233, false, GUIEditor.window[1])
        guiGridListAddColumn(GUIEditor.gridlist[1], "Players:", 0.9)
        GUIEditor.edit[1] = guiCreateEdit(18, 38, 116, 19, "", false, GUIEditor.window[1])
        GUIEditor.label[1] = guiCreateLabel(55, 23, 99, 15, "Search ", false, GUIEditor.window[1])
        guiSetFont(GUIEditor.label[1], "default-bold-small")
        GUIEditor.button[1] = guiCreateButton(172, 62, 184, 35, "Mute", false, GUIEditor.window[1])
        guiSetFont(GUIEditor.button[1], "default-bold-small")
        GUIEditor.edit[2] = guiCreateEdit(154, 118, 227, 30, "", false, GUIEditor.window[1])
        GUIEditor.label[2] = guiCreateLabel(47, -14, 170, 15, "What is Resson", false, GUIEditor.edit[2])
        GUIEditor.label[3] = guiCreateLabel(210, 97, 120, 15, "What is The Resson :", false, GUIEditor.window[1])
        guiSetFont(GUIEditor.label[3], "default-bold-small")
        GUIEditor.button[2] = guiCreateButton(164, 155, 94, 20, "Slap", false, GUIEditor.window[1])
        GUIEditor.button[3] = guiCreateButton(277, 155, 94, 20, "Kick", false, GUIEditor.window[1])
        GUIEditor.button[4] = guiCreateButton(163, 193, 208, 29, "Fly Car", false, GUIEditor.window[1])
        GUIEditor.button[5] = guiCreateButton(163, 232, 94, 20, "FIX", false, GUIEditor.window[1])
        GUIEditor.button[6] = guiCreateButton(277, 232, 94, 20, "Nitro", false, GUIEditor.window[1])
        GUIEditor.label[4] = guiCreateLabel(163, 170, 212, 15, "______________________________", false, GUIEditor.window[1])
        GUIEditor.label[5] = guiCreateLabel(297, 283, 148, 18, "Creat by FAHD v2", false, GUIEditor.window[1])
        guiLabelSetColor(GUIEditor.label[5], 254, 0, 0)   
        guiSetVisible ( GUIEditor.window[1], false )

bindKey ( Key, "down", 
    function ( )
        if guiGetVisible ( GUIEditor.window[1] ) then 
            guiSetVisible ( GUIEditor.window[1], false )
            showCursor ( false )
        else
            guiSetVisible ( GUIEditor.window[1], true )
            showCursor ( true )
        end
    end
)

function Players ( )

guiGridListClear ( GUIEditor.gridlist[1] )

local Row = guiGridListAddRow ( GUIEditor.gridlist[1] )

for id, players in ipairs(getElementsByType("player")) do 

guiGridListSetItemText ( GUIEditor.gridlist[1], Ros 1, getPlayerName ( players ), false, false )

end
end

addEventHandler( "onClientPlayerJoin", root, Players )
addEventHandler( "onClientPlayerQuit", root, Players )
addEventHandler( "onClientPlayerChangeNick", root, Players )

  • Like 1
Link to comment

الآدمي ما يعرف وش يعني الديبوق ،

يا اخي اكتب في اف8 

debugscript 3

وبيطلع لك مجموعة من الجمل صورها او أنسخها وحطها هنا عشان نعرف وين المشكلة ونحاول وساعدك قدر المستطاع 

تحياتي

  • Like 1
Link to comment
local Key = "F1" 
GUIEditor = {
    edit = {},
    button = {},
    window = {},
    label = {},
    gridlist = {}
}

        GUIEditor.window[1] = guiCreateWindow(190, 166, 405, 305, "Admin x2", false)
        guiWindowSetSizable(GUIEditor.window[1], false)
        GUIEditor.gridlist[1] = guiCreateGridList(10, 62, 134, 233, false, GUIEditor.window[1])
        guiGridListAddColumn(GUIEditor.gridlist[1], "Players:", 0.9)
        GUIEditor.edit[1] = guiCreateEdit(18, 38, 116, 19, "", false, GUIEditor.window[1])
        GUIEditor.label[1] = guiCreateLabel(55, 23, 99, 15, "Search ", false, GUIEditor.window[1])
        guiSetFont(GUIEditor.label[1], "default-bold-small")
        GUIEditor.button[1] = guiCreateButton(172, 62, 184, 35, "Mute", false, GUIEditor.window[1])
        guiSetFont(GUIEditor.button[1], "default-bold-small")
        GUIEditor.edit[2] = guiCreateEdit(154, 118, 227, 30, "", false, GUIEditor.window[1])
        GUIEditor.label[2] = guiCreateLabel(47, -14, 170, 15, "What is Resson", false, GUIEditor.edit[2])
        GUIEditor.label[3] = guiCreateLabel(210, 97, 120, 15, "What is The Resson :", false, GUIEditor.window[1])
        guiSetFont(GUIEditor.label[3], "default-bold-small")
        GUIEditor.button[2] = guiCreateButton(164, 155, 94, 20, "Slap", false, GUIEditor.window[1])
        GUIEditor.button[3] = guiCreateButton(277, 155, 94, 20, "Kick", false, GUIEditor.window[1])
        GUIEditor.button[4] = guiCreateButton(163, 193, 208, 29, "Fly Car", false, GUIEditor.window[1])
        GUIEditor.button[5] = guiCreateButton(163, 232, 94, 20, "FIX", false, GUIEditor.window[1])
        GUIEditor.button[6] = guiCreateButton(277, 232, 94, 20, "Nitro", false, GUIEditor.window[1])
        GUIEditor.label[4] = guiCreateLabel(163, 170, 212, 15, "______________________________", false, GUIEditor.window[1])
        GUIEditor.label[5] = guiCreateLabel(297, 283, 148, 18, "Creat by FAHD v2", false, GUIEditor.window[1])
        guiLabelSetColor(GUIEditor.label[5], 254, 0, 0)   
        guiSetVisible ( GUIEditor.window[1], false )

bindKey ( Key, "down", 
    function ( )
        if guiGetVisible ( GUIEditor.window[1] ) then 
            guiSetVisible ( GUIEditor.window[1], false )
            showCursor ( false )
        else
            guiSetVisible ( GUIEditor.window[1], true )
            showCursor ( true )
        end
    end
)

function Players ( )
guiGridListClear ( GUIEditor.gridlist[1] )
for id, players in ipairs(getElementsByType("player")) do 
local Row = guiGridListAddRow ( GUIEditor.gridlist[1] )
guiGridListSetItemText ( GUIEditor.gridlist[1], Row ,1, getPlayerName ( players ), false, false )
end
end
addEventHandler ( 'onClientResourceStart' , resourceRoot , Players )
addEventHandler( "onClientPlayerJoin", root, Players )
addEventHandler( "onClientPlayerQuit", root, Players )
addEventHandler( "onClientPlayerChangeNick", root, Players )

 

  • Like 1
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...