Jump to content

حل مشكلة في الجريد ليست


#STZ

Recommended Posts

السلام عليكم ورحمة الله وبركاته 

سويت 2 كولمن 

وكل كولمن في 

Rows 

واحد حق اسم اللاعب والفلوس

المشكلة جه 

اول رو في كولمن 1 اسمي

ثاني رو في كولمن 2 الفلوس 

مب قدام بعض يعني في نفس السطر 

المشكلة الثانية لازم اكتب شي في ايديت البحث بعدين احذفه عشان تظهر الجريد ليست 

 

Link to comment
function putPlayers()
	guiGridListClear(GRID)
	for i,player in ipairs(getElementsByType("player")) do 
		local row = guiGridListAddRow(GRID)
		local row2 = guiGridListAddRow(GRID)
		guiGridListSetItemText(GRID,row,1,getPlayerName(player),false,false)
		guiGridListSetItemText(GRID,row2,2,getPlayerMoney(player),false,false)
	end
end



setTimer(
function( )
		guiGridListSetItemText(GRID,row,1,getPlayerName(player),false,false)
		guiGridListSetItemText(GRID,row2,2,getPlayerMoney(player),false,false)

		
end, 100, 0
)



addEventHandler("onClientGUIChanged",root,
	function ()
		if ( source == Search_edit ) then
			local text = string.upper(guiGetText(Search_edit))
			if ( text == "" ) then
				putPlayers()    
			else
				guiGridListClear(GRID)
				for i,v in ipairs(getElementsByType("player")) do
					local name = string.upper(getPlayerName(v))
					if string.find(name,text) then
					playSoundFrontEnd(3)
						local row = guiGridListAddRow(GRID)
						local row2 = guiGridListAddRow(GRID)
						guiGridListSetItemText(GRID,row,1,getPlayerName(v),false,false)
						guiGridListSetItemText(GRID,row2,2,getPlayerMoney(player),false,false)
						

					end
				end
			end
		end
	end
)

 

@Master_MTA

@#BrosS

Link to comment
function putPlayers()
	guiGridListClear(GRID)
	for i,player in ipairs(getElementsByType("player")) do 
		local row = guiGridListAddRow(GRID)
		guiGridListSetItemText(GRID,row,1,getPlayerName(player),false,false)
		guiGridListSetItemText(GRID,row,2,getPlayerMoney(player),false,false)
	end
end





addEventHandler("onClientGUIChanged",root,
	function ()
		if ( source == Search_edit ) then
			local text = string.upper(guiGetText(Search_edit))
			if ( text == "" ) then
				putPlayers()    
			else
				guiGridListClear(GRID)
				for i,v in ipairs(getElementsByType("player")) do
					local name = string.upper(getPlayerName(v))
					if string.find(name,text) then
					playSoundFrontEnd(3)
						local row = guiGridListAddRow(GRID)
						guiGridListSetItemText(GRID,row,1,getPlayerName(v),false,false)
						guiGridListSetItemText(GRID,row,2,getPlayerMoney(player),false,false)
						

					end
				end
			end
		end
	end
)

جرب ورد خبر

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