1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
function zp_player_hud(p) 	local t = player(p,'team') 	if (t == 1) then 		zp_hudtxt2(p,2,8,'Health:: '..zp_p_health[p]..' ',65,420,0) 		zp_hudtxt2(p,2,9,'Class:: '..set_zm_val(zp_p_class[p],1)..' ',13,140,0) 		zp_hudtxt2(p,2,10,'Ammo Packs:: '..set_player_val(p,2)..' ',13,160,0) 		zp_hudtxt2(p,2,11,'Level:: '..set_player_val(p,3)..'/'..zp_lvl_max..' ',13,180,0) 		zp_hudtxt2(p,2,12,'Experience:: '..set_player_val(p,1)..'/'..set_player_val(p,4),13,200,0) 	elseif (t == 2) then 	local p_a = player(p,'armor') 	local p_h = player(p,'health') 		zp_hudtxt2(p,2,13,'Health:: '..p..' '..p_h,13,120,0) 		zp_hudtxt2(p,2,14,'Ammo Packs:: '..set_player_val(p,2)..' ',13,160,0) 		zp_hudtxt2(p,2,15,'Level:: '..set_player_val(p,3)..'/'..zp_lvl_max..' ',13,180,0) 		zp_hudtxt2(p,2,16,'Experience:: '..set_player_val(p,1)..'/'..set_player_val(p,4),13,200,0) 	end end
when i open consol
LUA ERROR:sys/lua/zombieplague/zp_func_up.lua:18:attempt to concatenate field '?'(a nil value)
znd in zp_func_up.lua i have this
1
2
3
2
3
function zp_hudtxt2(p,s,c,t,x,y,a) 	parse('hudtxt2 '..p..' '..s..' "'..color[c]..''..t..'" '..x..' '..y..' '..a) end