Jump to content

تصحيح


SoMe/RPG

Recommended Posts

اشً خطاء بذا كود

addEventHandler("onResourceStart",resourceRoot,function() 
for i,v in ipairs ( getElementsByType("player") ) do 
setElementData(v,"id",i) 
end 
end) 
  
addEventHandler("onPlayerJoin",root,function () 
for i,v in ipairs ( getElementsByType("player") ) do 
setElementData(v,"id",i) 
end 
end) 
  

Link to comment

جـرب *

addEventHandler('onResourceStart',resourceRoot, 
function() 
for i,v in ipairs ( getElementsByType('player') ) do 
setElementData(v,'id',i) 
end 
end 
) 
  
addEventHandler('onPlayerJoin',root, 
function() 
for i,v in ipairs ( getElementsByType('player') ) do 
if not ( getElementData(v,'id') ) then 
setElementData(v,'id',i) 
end 
end 
end 
) 

# . ! *

Link to comment
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...