1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
addhook("second","hudupdate")
function hudupdate()
if player(id,"weapontype")==50 then --bad argument #1 to 'player' (number expected, got nil)
parse(hudtxt2 2 \"knife\" 10 435 0")
elseif player(id,"weapontype")==78 then --ditto
parse("hudtxt2 3 \"Claw\" 10 435 0")
end
end
Why am i getting this?
inb4 facepalms
expected number, got nil
1 
Offline