New_Age
FoxWorld New Age
- Joined
- Jan 27, 2016
- Messages
- 24
- Reaction score
- 0
how to cite several arrays at the same time do so but unfortunately is giving this error
attempt to get length of local ´p´ <a userdata value>
ah but what you want to do? just set a storage the player if it is in the area and have a guild not only one will win
attempt to get length of local ´p´ <a userdata value>
Code:
for _,name in ipairs(Game.getPlayers()) do
local p = Player(name)
if killerGuild ~= nil then
if isInAreaTest(getCreaturePosition(p)) == TRUE then
for i = 1, name do
p[i]:setStorageValue(60000, 1)
addEvent(eventTest, 1000, p[i].uid)
end
end
elseif p == killer and killerGuild == nil then
p:setStorageValue(60000, 1)
addEvent(eventTest, 1000, p.uid)
end
end
ah but what you want to do? just set a storage the player if it is in the area and have a guild not only one will win
Last edited: