Jump to content

تصحيح كود


Recommended Posts

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

جرب

-- 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
جرب
-- 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 
) 
  

مشكووووووور :wink::wink::wink:

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