A
Alw
Guest
Hi, I'm currently scripting a killcounter for a task. I'm using tfs 1.0 if that wasn't clear hehe..
Well the problem is that i get this error.
Attempt to index local 'target' <a number value>
Well i really don't know what to do. Here is where i use target.
Thanks in advance.
Regards Alw
Well the problem is that i get this error.
Attempt to index local 'target' <a number value>
Well i really don't know what to do. Here is where i use target.
Code:
function onKill(creature, target)
if target:isPlayer() or target:getMaster() then
return true
end
end
Thanks in advance.
Regards Alw