whitevo
Feeling good, thats what I do.
my code:
The print is getting Bigger and Bigger and Bigger each time it executes this line.
the x does remain always the same (v.duration = 5)
What happens if the print value gets beyong the amount of integer value? will it crash my server?
print(table.remove(v.event, x)
is telling me the id of table value its removing, shouldn't it be 1,2,3,4 or 5?
Or does it count in some nil values?
If so how i remove these nil values from table?
Code:
v.event = {}
for x=1, v.duration do
if v.event[x] then
stopEvent(v.event[x])
print(table.remove(v.event, x))
table.remove(v.event, x)
if v.minStack then
table.insert(v.event, x, addEvent(doTargetCombatHealth, x*v.interval, 0, creature, v.damType, v.minStack*v.damage, v.minStack*v.damage, v.damEffect))
else
table.insert(v.event, x, addEvent(doTargetCombatHealth, x*v.interval, 0, creature, v.damType, v.damage, v.damage, v.damEffect))
end
values = values+1
else
table.remove(v.event, x)
end
end
The print is getting Bigger and Bigger and Bigger each time it executes this line.
the x does remain always the same (v.duration = 5)
What happens if the print value gets beyong the amount of integer value? will it crash my server?
print(table.remove(v.event, x)
is telling me the id of table value its removing, shouldn't it be 1,2,3,4 or 5?
Or does it count in some nil values?
If so how i remove these nil values from table?