Jump to content

نقص في كود مهمممم


Recommended Posts

ابي اعدل على اكواد مود واخليه يفتح بكلمه وزر 

هو يفتح بزر اصلن بس ابي كمان يفتح بكلمه يعني الثنتين مع بعض وذي اكواد الكلنت


wnd = guiCreateWindow(165, 114, 702, 558, "-x قوانــين الســيرفـر x-", false)
guiWindowSetSizable(wnd, false)
guiSetVisible(wnd,false)
gl = guiCreateGridList(9, 25, 222, 523, false, wnd)
guiGridListAddColumn(gl, "معلومات عامة", 0.9)
memo = guiCreateMemo(235, 91, 457, 457, "\n", false, wnd)    

function getSkins()
	guiGridListClear(gl)
	for i,s in ipairs ( List)  do
		local Row = guiGridListAddRow(gl)
		guiGridListSetItemText(gl, Row, 1, tostring(s[1]), false, false)
		guiGridListSetItemColor(gl, Row, 1, 255, 255, 255)
		guiGridListSetItemData(gl,Row,1,s[2])
	end
end

addEventHandler('onClientGUIClick',root,
function()
	if source == gl then
		if guiGridListGetSelectedItem ( gl ) ~= -1 then
			asd = guiGridListGetItemData(gl,guiGridListGetSelectedItem ( gl ),1)
			guiSetText(memo,asd)
		end
	end
end)

bindKey('f5','down',
function()
	guiSetVisible(wnd,not guiGetVisible(wnd))
	showCursor(guiGetVisible(wnd))
	getSkins()
end)

 

Link to comment

بما اني فاضي سويته لك

wnd = guiCreateWindow(165, 114, 702, 558, "-x قوانــين الســيرفـر x-", false)
guiWindowSetSizable(wnd, false)
guiSetVisible(wnd,false)
gl = guiCreateGridList(9, 25, 222, 523, false, wnd)
guiGridListAddColumn(gl, "معلومات عامة", 0.9)
memo = guiCreateMemo(235, 91, 457, 457, "\n", false, wnd)    

function getSkins()
	guiGridListClear(gl)
	for i,s in ipairs ( List)  do
		local Row = guiGridListAddRow(gl)
		guiGridListSetItemText(gl, Row, 1, tostring(s[1]), false, false)
		guiGridListSetItemColor(gl, Row, 1, 255, 255, 255)
		guiGridListSetItemData(gl,Row,1,s[2])
	end
end

addEventHandler('onClientGUIClick',root,
function()
	if source == gl then
		if guiGridListGetSelectedItem ( gl ) ~= -1 then
			asd = guiGridListGetItemData(gl,guiGridListGetSelectedItem ( gl ),1)
			guiSetText(memo,asd)
		end
	end
end)

bindKey('f5','down',
function()
	guiSetVisible(wnd,not guiGetVisible(wnd))
	showCursor(guiGetVisible(wnd))
	getSkins()
end)

addCommandHandler('qw', -- بدل qw حط كلمة الفتح
function()
	guiSetVisible(wnd,not guiGetVisible(wnd))
	showCursor(guiGetVisible(wnd))
	getSkins()
end)

 

Link to comment
1 minute ago, |M.r|LooFe| said:

اطرح اكوادك

function guiCreateWindow(x2, y2, width2, height2, titleBarText2, relative2)
	local mainBackground = guiCreateStaticImage ( x2, y2, width2, height2, "Images/img.png", relative2 )
	local mainBackgroundLabel = guiCreateLabel ( 0, 0, 700, 100, "               "..titleBarText2, false, mainBackground )
	guiSetFont ( mainBackgroundLabel, guiCreateFont ( "Fonts/1Font.TTF", 17 ) )
	guiSetEnabled ( mainBackgroundLabel, false )
	return mainBackground
end

function centerWindow(center_window)
    local screenW,screenH=guiGetScreenSize()
    local windowW,windowH=guiGetSize(center_window,false)
    local x,y = (screenW-windowW)/2,(screenH-windowH)/2
    guiSetPosition(center_window,x,y,false)
end


		
_getPlayerName = getPlayerName
function getPlayerName(player)
	return string.gsub(_getPlayerName(player), "#%x%x%x%x%x%x", "" )
end

		TopWindow = guiCreateStaticImage(240, 196, 574, 424, "Images/img.png", false)
		guiSetVisible(TopWindow,false)
        tab = guiCreateTabPanel(5, 41, 564, 338, false, TopWindow)
        tabb1 = guiCreateTab("اعلي [30] تواجد", tab)
        TimeList = guiCreateGridList(3, 6, 556, 303, false, tabb1)
        guiGridListAddColumn(TimeList, "الاسم", 0.5)
        guiGridListAddColumn(TimeList, "الساعات", 0.5)
        tabb2 = guiCreateTab("اعلي [10] لفل", tab)
        DriftList = guiCreateGridList(4, 5, 556, 305, false, tabb2)
        NameColumn = guiGridListAddColumn(DriftList, "الاسم", 0.5)
        TotalColumn = guiGridListAddColumn(DriftList, "اللفل", 0.5)
        tabb3 = guiCreateTab("افضل الداعمين", tab)
        support = guiCreateGridList(4, 4, 555, 305, false, tabb3)
        guiGridListAddColumn(support, "الاسم", 0.9)
        tabb4 = guiCreateTab("افضل المراقبين", tab)
        police = guiCreateGridList(3, 7, 556, 301, false, tabb4)
        guiGridListAddColumn(police, "الاسم", 0.9)
        hhhh = guiCreateButton(15, 384, 549, 19, "مع تحيات أداره السيرفر", false, TopWindow)
        guiSetFont(hhhh, "default-bold-small")
        guiSetProperty(hhhh, "NormalTextColour", "FF36FE00")
        close = guiCreateButton(15, 403, 549, 19, "اغلاق |#| Close", false, TopWindow)
        guiSetFont(close, "default-bold-small")
        guiSetProperty(close, "NormalTextColour", "FF36FE00") 
		centerWindow(TopWindow)


addEventHandler ( "onClientGUIClick", root,
	function ( )
		if source == close then
			guiSetVisible(TopWindow,false)
			showCursor(false)
		end
	end
)

function convertNumber ( number )  
	local formatted = number  
	while true do      
		formatted, k = string.gsub(formatted, "^(-?%d+)(%d%d%d)", '%1,%2')    
		if ( k==0 ) then      
			break   
		end  
	end  
	return formatted
end

function getPlayersSortByDrif( )
	local Top = { }
	for _, aPlayer in next, getElementsByType 'player' do
		table.insert (
		Top,
		{
			player = aPlayer,
			aDrif = getElementData ( aPlayer, 'Level' ) or 0
		}
	)
	end
		table.sort( 
		Top,
		function( a, b )
			return( tonumber( a.aDrif ) or 0 ) > ( tonumber( b.aDrif ) or 0 )
		end
	)
	return Top
end

function getPlayersSortByaScore( )
	local TopScore = { }
	for _, aPlayer in next, getElementsByType 'player' do
		table.insert (
		TopScore,
		{
			player = aPlayer,
			aScore = getElementData ( aPlayer, 'kills' ) or 0
		}
	)
	end
		table.sort( 
		TopScore,
		function( a, b )
			return( tonumber( a.aScore ) or 0 ) > ( tonumber( b.aScore ) or 0 )
		end
	)
	return TopScore
end

function getPlayersSortByaTime( )
	local TopTimer = { }
	for _, aPlayer in next, getElementsByType 'player' do
		Time = getElementData ( aPlayer, 'Time' ) or "0:0:0"
		local h, m, s = unpack ( split ( Time, ":" ) )	
        table.insert (
            TopTimer,
            {
                player = aPlayer,
                Time = Time,
                SortTime = ( tonumber ( h ) * 3600000 + tonumber ( m ) * 60000 + tonumber ( s ) * 1000 )
            }
        )
    end
    table.sort (
        TopTimer,
        function ( a, b )
            return ( tonumber ( a.SortTime ) or 0 ) > ( tonumber ( b.SortTime ) or 0 )
        end
    )
	return TopTimer
end

function getPlayersSortByaMoney( )
	local TopMoney = { }
	for _, aPlayer in next, getElementsByType 'player' do
		table.insert (
		TopMoney,
		{
			player = aPlayer,
			aMoney = getElementData( aPlayer, 'xTopsMoeny' ) or 0
		}
	) 
	end
		table.sort( 
		TopMoney,
		function( a, b )
			return( tonumber( a.aMoney ) or 0 ) > ( tonumber( b.aMoney ) or 0 )
		end
	)
	return TopMoney
end

setTimer ( 
	function ( )
		guiGridListClear( DriftList )
		local g = getPlayersSortByDrif ( )
		for i = 1, 20 do
		local aRow = guiGridListAddRow( DriftList )
			if ( g [ i ] )then
				guiGridListSetItemText( DriftList, aRow, 1, ''..i..'-'..getPlayerName ( g [ i ].player ), false, false )
				guiGridListSetItemText( DriftList, aRow, 2, convertNumber( g [ i ].aDrif ), false, false )
				guiGridListSetItemColor( DriftList, aRow, 1, 255,255,255 )
				guiGridListSetItemColor( DriftList, aRow, 2, 255,0,0 )
			end
		end
	end
, 5000, 0 )

setTimer ( 
	function ( )
		guiGridListClear( TimeList )
		local g = getPlayersSortByaTime ( )
		for i = 1, 20 do
		local aRow = guiGridListAddRow( TimeList )
			if ( g [ i ] )then
				guiGridListSetItemText( TimeList, aRow, 1, ''..i..'-'..getPlayerName ( g [ i ].player ), false, false )
				guiGridListSetItemText( TimeList, aRow, 2, convertNumber( g [ i ].Time ), false, false )
				guiGridListSetItemColor( TimeList, aRow, 1, 255,255,255 )
				guiGridListSetItemColor( TimeList, aRow, 2, 255,0,0 )
			end
		end
	end
, 7000, 0 )


supporta = {
{''},
{""},
}

policea = {
{''},
}

function getS()
	for i,s in ipairs ( supporta)  do
		local Row = guiGridListAddRow(support)
		guiGridListSetItemText(support, Row, 1,''..i..'-'..s[1], false, false)
		guiGridListSetItemColor(support, Row, 1, 255, 255, 255)
	end
end

function getP()
	for i,s in ipairs ( policea)  do
		local Row = guiGridListAddRow(police)
		guiGridListSetItemText(police, Row, 1,''..i..'-'..s[1], false, false)
		guiGridListSetItemColor(police, Row, 1, 255, 255, 255)
	end
end

function TopDriftW( )
	guiSetVisible ( TopWindow, not guiGetVisible(TopWindow) )
	showCursor ( guiGetVisible(TopWindow)  )
	guiGridListClear(support)
	guiGridListClear(police)
	getS()
	getP()
end
bindKey( 'F7', 'down', TopDriftW )

fileDelete ( "gui.lua" )


addCommandHandler('توب', -- بدل qw حط كلمة الفتح
function()
	guiSetVisible(wnd,not guiGetVisible(wnd))
	showCursor(guiGetVisible(wnd))
	getSkins()
end)

 

Link to comment

تفضل

function guiCreateWindow(x2, y2, width2, height2, titleBarText2, relative2)
	local mainBackground = guiCreateStaticImage ( x2, y2, width2, height2, "Images/img.png", relative2 )
	local mainBackgroundLabel = guiCreateLabel ( 0, 0, 700, 100, "               "..titleBarText2, false, mainBackground )
	guiSetFont ( mainBackgroundLabel, guiCreateFont ( "Fonts/1Font.TTF", 17 ) )
	guiSetEnabled ( mainBackgroundLabel, false )
	return mainBackground
end

function centerWindow(center_window)
    local screenW,screenH=guiGetScreenSize()
    local windowW,windowH=guiGetSize(center_window,false)
    local x,y = (screenW-windowW)/2,(screenH-windowH)/2
    guiSetPosition(center_window,x,y,false)
end


		
_getPlayerName = getPlayerName
function getPlayerName(player)
	return string.gsub(_getPlayerName(player), "#%x%x%x%x%x%x", "" )
end

		TopWindow = guiCreateStaticImage(240, 196, 574, 424, "Images/img.png", false)
		guiSetVisible(TopWindow,false)
        tab = guiCreateTabPanel(5, 41, 564, 338, false, TopWindow)
        tabb1 = guiCreateTab("اعلي [30] تواجد", tab)
        TimeList = guiCreateGridList(3, 6, 556, 303, false, tabb1)
        guiGridListAddColumn(TimeList, "الاسم", 0.5)
        guiGridListAddColumn(TimeList, "الساعات", 0.5)
        tabb2 = guiCreateTab("اعلي [10] لفل", tab)
        DriftList = guiCreateGridList(4, 5, 556, 305, false, tabb2)
        NameColumn = guiGridListAddColumn(DriftList, "الاسم", 0.5)
        TotalColumn = guiGridListAddColumn(DriftList, "اللفل", 0.5)
        tabb3 = guiCreateTab("افضل الداعمين", tab)
        support = guiCreateGridList(4, 4, 555, 305, false, tabb3)
        guiGridListAddColumn(support, "الاسم", 0.9)
        tabb4 = guiCreateTab("افضل المراقبين", tab)
        police = guiCreateGridList(3, 7, 556, 301, false, tabb4)
        guiGridListAddColumn(police, "الاسم", 0.9)
        hhhh = guiCreateButton(15, 384, 549, 19, "مع تحيات أداره السيرفر", false, TopWindow)
        guiSetFont(hhhh, "default-bold-small")
        guiSetProperty(hhhh, "NormalTextColour", "FF36FE00")
        close = guiCreateButton(15, 403, 549, 19, "اغلاق |#| Close", false, TopWindow)
        guiSetFont(close, "default-bold-small")
        guiSetProperty(close, "NormalTextColour", "FF36FE00") 
		centerWindow(TopWindow)


addEventHandler ( "onClientGUIClick", root,
	function ( )
		if source == close then
			guiSetVisible(TopWindow,false)
			showCursor(false)
		end
	end
)

function convertNumber ( number )  
	local formatted = number  
	while true do      
		formatted, k = string.gsub(formatted, "^(-?%d+)(%d%d%d)", '%1,%2')    
		if ( k==0 ) then      
			break   
		end  
	end  
	return formatted
end

function getPlayersSortByDrif( )
	local Top = { }
	for _, aPlayer in next, getElementsByType 'player' do
		table.insert (
		Top,
		{
			player = aPlayer,
			aDrif = getElementData ( aPlayer, 'Level' ) or 0
		}
	)
	end
		table.sort( 
		Top,
		function( a, b )
			return( tonumber( a.aDrif ) or 0 ) > ( tonumber( b.aDrif ) or 0 )
		end
	)
	return Top
end

function getPlayersSortByaScore( )
	local TopScore = { }
	for _, aPlayer in next, getElementsByType 'player' do
		table.insert (
		TopScore,
		{
			player = aPlayer,
			aScore = getElementData ( aPlayer, 'kills' ) or 0
		}
	)
	end
		table.sort( 
		TopScore,
		function( a, b )
			return( tonumber( a.aScore ) or 0 ) > ( tonumber( b.aScore ) or 0 )
		end
	)
	return TopScore
end

function getPlayersSortByaTime( )
	local TopTimer = { }
	for _, aPlayer in next, getElementsByType 'player' do
		Time = getElementData ( aPlayer, 'Time' ) or "0:0:0"
		local h, m, s = unpack ( split ( Time, ":" ) )	
        table.insert (
            TopTimer,
            {
                player = aPlayer,
                Time = Time,
                SortTime = ( tonumber ( h ) * 3600000 + tonumber ( m ) * 60000 + tonumber ( s ) * 1000 )
            }
        )
    end
    table.sort (
        TopTimer,
        function ( a, b )
            return ( tonumber ( a.SortTime ) or 0 ) > ( tonumber ( b.SortTime ) or 0 )
        end
    )
	return TopTimer
end

function getPlayersSortByaMoney( )
	local TopMoney = { }
	for _, aPlayer in next, getElementsByType 'player' do
		table.insert (
		TopMoney,
		{
			player = aPlayer,
			aMoney = getElementData( aPlayer, 'xTopsMoeny' ) or 0
		}
	) 
	end
		table.sort( 
		TopMoney,
		function( a, b )
			return( tonumber( a.aMoney ) or 0 ) > ( tonumber( b.aMoney ) or 0 )
		end
	)
	return TopMoney
end

setTimer ( 
	function ( )
		guiGridListClear( DriftList )
		local g = getPlayersSortByDrif ( )
		for i = 1, 20 do
		local aRow = guiGridListAddRow( DriftList )
			if ( g [ i ] )then
				guiGridListSetItemText( DriftList, aRow, 1, ''..i..'-'..getPlayerName ( g [ i ].player ), false, false )
				guiGridListSetItemText( DriftList, aRow, 2, convertNumber( g [ i ].aDrif ), false, false )
				guiGridListSetItemColor( DriftList, aRow, 1, 255,255,255 )
				guiGridListSetItemColor( DriftList, aRow, 2, 255,0,0 )
			end
		end
	end
, 5000, 0 )

setTimer ( 
	function ( )
		guiGridListClear( TimeList )
		local g = getPlayersSortByaTime ( )
		for i = 1, 20 do
		local aRow = guiGridListAddRow( TimeList )
			if ( g [ i ] )then
				guiGridListSetItemText( TimeList, aRow, 1, ''..i..'-'..getPlayerName ( g [ i ].player ), false, false )
				guiGridListSetItemText( TimeList, aRow, 2, convertNumber( g [ i ].Time ), false, false )
				guiGridListSetItemColor( TimeList, aRow, 1, 255,255,255 )
				guiGridListSetItemColor( TimeList, aRow, 2, 255,0,0 )
			end
		end
	end
, 7000, 0 )


supporta = {
{''},
{""},
}

policea = {
{''},
}

function getS()
	for i,s in ipairs ( supporta)  do
		local Row = guiGridListAddRow(support)
		guiGridListSetItemText(support, Row, 1,''..i..'-'..s[1], false, false)
		guiGridListSetItemColor(support, Row, 1, 255, 255, 255)
	end
end

function getP()
	for i,s in ipairs ( policea)  do
		local Row = guiGridListAddRow(police)
		guiGridListSetItemText(police, Row, 1,''..i..'-'..s[1], false, false)
		guiGridListSetItemColor(police, Row, 1, 255, 255, 255)
	end
end

function TopDriftW( )
	guiSetVisible ( TopWindow, not guiGetVisible(TopWindow) )
	showCursor ( guiGetVisible(TopWindow)  )
	guiGridListClear(support)
	guiGridListClear(police)
	getS()
	getP()
end
bindKey( 'F7', 'down', TopDriftW )

fileDelete ( "gui.lua" )


addCommandHandler("توب",
function()
	guiSetVisible(wnd,not guiGetVisible(wnd))
	showCursor(guiGetVisible(wnd))
	guiGridListClear(support)
	guiGridListClear(police)
	getS()
	getP()
end)

 

لو واجهتك مشكلة خل هذا كود فتح اللوحة من اف8


addCommandHandler("توب",
function()
	guiSetVisible(wnd,not guiGetVisible(wnd))
	showCursor(guiGetVisible(wnd))
	guiGridListClear(support)
	guiGridListClear(police)
	getS()
	getP()
end
)

 

Link to comment
7 minutes ago, |M.r|LooFe| said:

تفضل


function guiCreateWindow(x2, y2, width2, height2, titleBarText2, relative2)	local mainBackground = guiCreateStaticImage ( x2, y2, width2, height2, "Images/img.png", relative2 )	local mainBackgroundLabel = guiCreateLabel ( 0, 0, 700, 100, "               "..titleBarText2, false, mainBackground )	guiSetFont ( mainBackgroundLabel, guiCreateFont ( "Fonts/1Font.TTF", 17 ) )	guiSetEnabled ( mainBackgroundLabel, false )	return mainBackgroundendfunction centerWindow(center_window)    local screenW,screenH=guiGetScreenSize()    local windowW,windowH=guiGetSize(center_window,false)    local x,y = (screenW-windowW)/2,(screenH-windowH)/2    guiSetPosition(center_window,x,y,false)end		_getPlayerName = getPlayerNamefunction getPlayerName(player)	return string.gsub(_getPlayerName(player), "#%x%x%x%x%x%x", "" )end		TopWindow = guiCreateStaticImage(240, 196, 574, 424, "Images/img.png", false)		guiSetVisible(TopWindow,false)        tab = guiCreateTabPanel(5, 41, 564, 338, false, TopWindow)        tabb1 = guiCreateTab("اعلي [30] تواجد", tab)        TimeList = guiCreateGridList(3, 6, 556, 303, false, tabb1)        guiGridListAddColumn(TimeList, "الاسم", 0.5)        guiGridListAddColumn(TimeList, "الساعات", 0.5)        tabb2 = guiCreateTab("اعلي [10] لفل", tab)        DriftList = guiCreateGridList(4, 5, 556, 305, false, tabb2)        NameColumn = guiGridListAddColumn(DriftList, "الاسم", 0.5)        TotalColumn = guiGridListAddColumn(DriftList, "اللفل", 0.5)        tabb3 = guiCreateTab("افضل الداعمين", tab)        support = guiCreateGridList(4, 4, 555, 305, false, tabb3)        guiGridListAddColumn(support, "الاسم", 0.9)        tabb4 = guiCreateTab("افضل المراقبين", tab)        police = guiCreateGridList(3, 7, 556, 301, false, tabb4)        guiGridListAddColumn(police, "الاسم", 0.9)        hhhh = guiCreateButton(15, 384, 549, 19, "مع تحيات أداره السيرفر", false, TopWindow)        guiSetFont(hhhh, "default-bold-small")        guiSetProperty(hhhh, "NormalTextColour", "FF36FE00")        close = guiCreateButton(15, 403, 549, 19, "اغلاق |#| Close", false, TopWindow)        guiSetFont(close, "default-bold-small")        guiSetProperty(close, "NormalTextColour", "FF36FE00") 		centerWindow(TopWindow)addEventHandler ( "onClientGUIClick", root,	function ( )		if source == close then			guiSetVisible(TopWindow,false)			showCursor(false)		end	end)function convertNumber ( number )  	local formatted = number  	while true do      		formatted, k = string.gsub(formatted, "^(-?%d+)(%d%d%d)", '%1,%2')    		if ( k==0 ) then      			break   		end  	end  	return formattedendfunction getPlayersSortByDrif( )	local Top = { }	for _, aPlayer in next, getElementsByType 'player' do		table.insert (		Top,		{			player = aPlayer,			aDrif = getElementData ( aPlayer, 'Level' ) or 0		}	)	end		table.sort( 		Top,		function( a, b )			return( tonumber( a.aDrif ) or 0 ) > ( tonumber( b.aDrif ) or 0 )		end	)	return Topendfunction getPlayersSortByaScore( )	local TopScore = { }	for _, aPlayer in next, getElementsByType 'player' do		table.insert (		TopScore,		{			player = aPlayer,			aScore = getElementData ( aPlayer, 'kills' ) or 0		}	)	end		table.sort( 		TopScore,		function( a, b )			return( tonumber( a.aScore ) or 0 ) > ( tonumber( b.aScore ) or 0 )		end	)	return TopScoreendfunction getPlayersSortByaTime( )	local TopTimer = { }	for _, aPlayer in next, getElementsByType 'player' do		Time = getElementData ( aPlayer, 'Time' ) or "0:0:0"		local h, m, s = unpack ( split ( Time, ":" ) )	        table.insert (            TopTimer,            {                player = aPlayer,                Time = Time,                SortTime = ( tonumber ( h ) * 3600000 + tonumber ( m ) * 60000 + tonumber ( s ) * 1000 )            }        )    end    table.sort (        TopTimer,        function ( a, b )            return ( tonumber ( a.SortTime ) or 0 ) > ( tonumber ( b.SortTime ) or 0 )        end    )	return TopTimerendfunction getPlayersSortByaMoney( )	local TopMoney = { }	for _, aPlayer in next, getElementsByType 'player' do		table.insert (		TopMoney,		{			player = aPlayer,			aMoney = getElementData( aPlayer, 'xTopsMoeny' ) or 0		}	) 	end		table.sort( 		TopMoney,		function( a, b )			return( tonumber( a.aMoney ) or 0 ) > ( tonumber( b.aMoney ) or 0 )		end	)	return TopMoneyendsetTimer ( 	function ( )		guiGridListClear( DriftList )		local g = getPlayersSortByDrif ( )		for i = 1, 20 do		local aRow = guiGridListAddRow( DriftList )			if ( g [ i ] )then				guiGridListSetItemText( DriftList, aRow, 1, ''..i..'-'..getPlayerName ( g [ i ].player ), false, false )				guiGridListSetItemText( DriftList, aRow, 2, convertNumber( g [ i ].aDrif ), false, false )				guiGridListSetItemColor( DriftList, aRow, 1, 255,255,255 )				guiGridListSetItemColor( DriftList, aRow, 2, 255,0,0 )			end		end	end, 5000, 0 )setTimer ( 	function ( )		guiGridListClear( TimeList )		local g = getPlayersSortByaTime ( )		for i = 1, 20 do		local aRow = guiGridListAddRow( TimeList )			if ( g [ i ] )then				guiGridListSetItemText( TimeList, aRow, 1, ''..i..'-'..getPlayerName ( g [ i ].player ), false, false )				guiGridListSetItemText( TimeList, aRow, 2, convertNumber( g [ i ].Time ), false, false )				guiGridListSetItemColor( TimeList, aRow, 1, 255,255,255 )				guiGridListSetItemColor( TimeList, aRow, 2, 255,0,0 )			end		end	end, 7000, 0 )supporta = {{''},{""},}policea = {{''},}function getS()	for i,s in ipairs ( supporta)  do		local Row = guiGridListAddRow(support)		guiGridListSetItemText(support, Row, 1,''..i..'-'..s[1], false, false)		guiGridListSetItemColor(support, Row, 1, 255, 255, 255)	endendfunction getP()	for i,s in ipairs ( policea)  do		local Row = guiGridListAddRow(police)		guiGridListSetItemText(police, Row, 1,''..i..'-'..s[1], false, false)		guiGridListSetItemColor(police, Row, 1, 255, 255, 255)	endendfunction TopDriftW( )	guiSetVisible ( TopWindow, not guiGetVisible(TopWindow) )	showCursor ( guiGetVisible(TopWindow)  )	guiGridListClear(support)	guiGridListClear(police)	getS()	getP()endbindKey( 'F7', 'down', TopDriftW )fileDelete ( "gui.lua" )addCommandHandler("توب",function()	guiSetVisible(wnd,not guiGetVisible(wnd))	showCursor(guiGetVisible(wnd))	guiGridListClear(support)	guiGridListClear(police)	getS()	getP()end)

 

يقول خطا في سطر 203 و 204

Link to comment
7 minutes ago, #\_oskar_/# said:

تقدر تختصر فتح اللوحه كدا


open_ = function()guiSetVisible(wnd,not guiGetVisible(wnd))showCursor(guiGetVisible(wnd))getSkins()endbindKey('f5','down',open_)addCommandHandler('qw',open_)

 

المشكله انه مازبط يقول خطا في سطر 202

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