Jump to content

getPlayerFromAccountName , مشكلة بـ


Recommended Posts

سلام عليكم 

معي مشكلة بـ getPlayerFromAccountName

آبي يجيب آسم حسآب شخص من آلقريد ليست , ويطلع آسم صآحب آلحسآب

-- # Client

addEventHandler("onClientGUIClick",root,
	function ()
		if source == edarh.button[1] then
		 local account = guiGridListGetItemText ( edarh.gridlist[1], guiGridListGetSelectedItem ( edarh.gridlist[1] ), 3 )
			triggerServerEvent("test", localPlayer,account)
		end
    end 
) 

-- # Server

addEvent("test", true)
addEventHandler("test", root,
	function(account)
        local thePlayer = getPlayerFromAccountName (account)
			outputChatBox("player : "..thePlayer.."",source,0,255,0,true)
		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...