LUA ERRROR: sys/lua/cs2dtibia/monster.lua:420 attempt to index a nil value Please Help Me"
Forum
CS2D General Because this error?Because this error?
2 replies 1
LUA ERRROR: sys/lua/cs2dtibia/monster.lua:420 attempt to index a nil value Please Help Me"
1
2
3
4
5
2
3
4
5
Line 420 : if closest then 		closest[1]:damage(id, math.ceil(20*((PLAYERS[id].Level+50)*PLAYERS[id].tmp.atk/closest[1].def)/math.random(60, 140)), weapon)
closest[1]:damage(id, math.ceil(20*((PLAYERS[id].Level+50)*PLAYERS[id].tmp.atk/closest[1].def)/math.random(60, 140)), weapon)
1