Ahmed Ly Posted May 20, 2016 Share Posted May 20, 2016 function Playerall (pppp) guiGridListClear(GUIEditor.gridlist[1]) for _,v in ipairs ( getElementsByType ( "player" ) ) do local row = guiGridListAddRow(GUIEditor.gridlist[1]) guiGridListSetItemText(GUIEditor.gridlist[1],row,ss,.pppp(v),false,false)--- this erorr end end addEventHandler("gett",root,Playerall) addEvent("gett",true) addEventHandler ("onClientResourceStart",resourceRoot,Playerall) addEventHandler("onClientRoundFinish",root,Playerall) addEventHandler("onClientRoundStart",root,Playerall) function mm () local pppp = getPlayerIP(source) -- --- this erorr triggerClientEvent(source,"gett",pppp) end Link to comment
#J2mes Posted May 20, 2016 Share Posted May 20, 2016 جرب -- Server Side addEventHandler("onResourceStart",resourceRoot, function ( ) for _,v in ipairs ( getElementsByType("player") ) do setElementData ( v , "ip_player" , getPlayerIP ( v ) ) end end ) addEventHandler("onPlayerJoin",root, function ( ) setElementData ( source , "ip_player" , getPlayerIP ( source ) ) end ) -- Client Side addEventHandler("onClientResourceStart",resourceRoot, function ( ) guiGridListClear ( GUIEditor.gridlist[1] ) for i,v in ipairs ( getElementsByType("player") ) do local row = guiGridListAddRow ( GUIEditor.gridlist[1] ) guiGridListSetItemText ( GUIEditor.gridlist[1] , row , 1 , getElementData ( v , "ip_player") , false , false ) end end ) Link to comment
Ahmed Ly Posted May 20, 2016 Author Share Posted May 20, 2016 جرب -- Server Side addEventHandler("onResourceStart",resourceRoot, function ( ) for _,v in ipairs ( getElementsByType("player") ) do setElementData ( v , "ip_player" , getPlayerIP ( v ) ) end end ) addEventHandler("onPlayerJoin",root, function ( ) setElementData ( source , "ip_player" , getPlayerIP ( source ) ) end ) -- Client Side addEventHandler("onClientResourceStart",resourceRoot, function ( ) guiGridListClear ( GUIEditor.gridlist[1] ) for i,v in ipairs ( getElementsByType("player") ) do local row = guiGridListAddRow ( GUIEditor.gridlist[1] ) guiGridListSetItemText ( GUIEditor.gridlist[1] , row , 1 , getElementData ( v , "ip_player") , false , false ) end end ) مشكووووووور Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now