Forum

> > CS2D > Scripts > ZP bar dissapear
Forums overviewCS2D overview Scripts overviewLog in to reply

English ZP bar dissapear

11 replies
To the start Previous 1 Next To the start

old ZP bar dissapear

Godrulez
User Off Offline

Quote
Hello, I have @user SQ's Zombie plague and I have @user Starkkz's Admin script and it works fine(thanks to @user VyRuX) but I have one problem:
The Bar with health, level, class and xp is missing, it shows for a fraction of a second when I am shot at, but then disappears again, does anyone know how to solve this? Thanks!

PS. in dedicated server it gives me this error:
LUA ERROR: sys/lua/zombieplague/zp_func_up.lua:26(and 30): attempt to concatenate field '?' (a nil value)

Any Answers? Thanks

old change

Agustindz23
User Off Offline

Quote
you must change the file
sys / lua / zombie plague / zp_ func_up by the original ZP
That happened to me when I was editing the LUA

old Re: ZP bar dissapear

Godrulez
User Off Offline

Quote
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
function string.split(t,b)
	local cmd = {}
	local match = "[^%s]+"
	if type(b) == "string" then match = "[^"..b.."]+" end
	for word in string.gmatch(t, match) do table.insert(cmd, word) end
	return cmd
end 

function zp_print(c,t)
	print(color[c]..'[ZP] '..t)
end

function zp_hudtxt2(p,s,c,t,x,y,a)
	parse('hudtxt2 '..p..' '..s..' "'..color[c]..''..t..'" '..x..' '..y..' '..a)
end

function zp_hudtxt(s,c,t,x,y,a)
	parse('hudtxt '..s..' "'..color[c]..''..t..'" '..x..' '..y..' '..a)
end

function zp_msg2(p,c,t)
	msg2(p,color[c]..''..t)
end

function zp_msg(c,t)
	msg(color[c]..''..t)
end

function zp_snd2(p,s)
	if (zp_sound > 0) then
		parse('sv_sound2 '..p..'  '..snd_dir..''..zp_adv_snd[s]..'.wav')
	end
end

function zp_snd(s)
	if (zp_sound > 0) then
		parse('sv_sound '..snd_dir..''..zp_adv_snd[s]..'.ogg')
	end
end

old Re: ZP bar dissapear

MikuAuahDark
User Off Offline

Quote
are you really sure that table called color with index (value of c) is exist?

try to put this in console when the ZP server starts:
1
lua print(tostring(color))
it it's showing nil then it isn't exist

old Re: ZP bar dissapear

Godrulez
User Off Offline

Quote
@user Gajos: What do you mean? what can I do to repair it or something?
I need the Zombie Plague bar disappeared, that's what I need fixed, thank you

@user Starkkz: VyRuX told me you helped him, can you help me too?

old Re: ZP bar dissapear

MikuAuahDark
User Off Offline

Quote
user Godrulez has written
@user MikuAuahDark: 1. How I put it? it doesn't let me paste or write anything in it

Nvm about that console commands. Try to type this in say(default z):
1
/lua msg(tostring(color))
and tell me what is a message come after you type that in say

user Godrulez has written
2. how this solves my problem with the bar?
make sure that another script does not use the Hudtxt ID that ZP use

old Re: ZP bar dissapear

MikuAuahDark
User Off Offline

Quote
are you sure that it's does not show anything?
it should show a message. it can be nil or table: <dynamic value>

old Re: ZP bar dissapear

Godrulez
User Off Offline

Quote
Nevermind, I solved it, I disabled the admin system, but I can't use f2 anymore, I replaced the modified files with the original but I can't use it to get to the menu of zp, thank you all for help
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview