LUA ERROR: sys/lua/AKD_One in the Champer.lua:47: bad argument #2 to 'player' (string expected, got nil)
1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11
addhook("attack","OnAttack")
function OnAttack(id)
if(player(id,weapontype)==3) then --iid 3 = deagle
Bullets[id] = Bullets[id] - 1
if Bullets[id] < 1 then
parse('strip '..id..' 3')
parse('setweapon '..id..' 50')
end
end
parse('hudtxt2 '..id..' 4 "©000255000Bullets: '..Bullets[id]..'" '..BulletsPos)
end
Any1 knows what's wrong?
- Anders4000
Ps. DC fix those spaces soon. I need to tab trhough it all when i post something