-- Draw ammo
if client:GetActiveWeapon().Primary then
local ammo_clip, ammo_max, ammo_inv = GetAmmo(client)
if ammo_clip != -1 then
local ammo_y = health_y + bar_height + margin
PaintBar(x+margin, ammo_y, bar_width, bar_height, ammo_colors, ammo_clip/ammo_max)
local text = string.format("%i ...
Search found 2 matches
- Tue May 28, 2013 8:35 pm
- Forum: Garrysmod
- Topic: Found this error anything?
- Replies: 2
- Views: 1438
- Sat May 25, 2013 11:00 pm
- Forum: Garrysmod
- Topic: Found this error anything?
- Replies: 2
- Views: 1438
Found this error anything?
Hi everyone. So I run a TTT server and I found this error today and I can't quite figure out what's up with it. Nothing looks wrong in the files.
[ERROR] gamemodes/terrortown/gamemode/cl_hud.lua:246: bad argument #3 to 'format' (number expected, got boolean)
1. format - [C]:-1
2. InfoPaint ...
[ERROR] gamemodes/terrortown/gamemode/cl_hud.lua:246: bad argument #3 to 'format' (number expected, got boolean)
1. format - [C]:-1
2. InfoPaint ...