loooser has written
Can some one halp me with this
thats what the consol sais
LUA ERROR: sys/lua/server.lua:3:attempt to call local 'player'(a number value)
1
2
3
4
5
6
7
2
3
4
5
6
7
addhook("objectdamage","objectdamage") function objectdamage(id,damage,player) if player(player,"team")==object(id,"team") then parse("killobject "..id) parse("spawnobject "..object(id,"type").." "..(object(id,"tilex")+1).." "..object(id,"tiley").." 0 0 "..object(id,"team").." "..object(id,"player")) end end
thats what the consol sais
LUA ERROR: sys/lua/server.lua:3:attempt to call local 'player'(a number value)
try this
1
2
3
4
5
6
7
2
3
4
5
6
7
addhook("objectdamage","objectdamage") function objectdamage(id,damage,i) 	if player(i,"team") == object(id,"team") then 		parse("killobject "..id) 		parse("spawnobject "..object(id,"type").." "..(object(id,"tilex")+1).." "..object(id,"tiley").." 0 0 "..object(id,"team").." "..object(id,"player")) 	end end