SoMe/RPG Posted January 25, 2014 Share Posted January 25, 2014 اشً خطاء بذا كود 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
Mando Posted January 25, 2014 Share Posted January 25, 2014 وش الوظيفة حقتة ؟ ومالمشكلة ؟ Link to comment
SoMe/RPG Posted January 25, 2014 Author Share Posted January 25, 2014 حق أيدي لاعب لكن الأيدي يتغير لحاله Link to comment
EH10 Posted January 25, 2014 Share Posted January 25, 2014 جـرب * 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
Recommended Posts