Forum

> > CS2D > Scripts > ZP bar dissapear
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch ZP bar dissapear

11 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt ZP bar dissapear

Godrulez
User Off Offline

Zitieren
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

alt change

Agustindz23
User Off Offline

Zitieren
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

alt Re: ZP bar dissapear

Godrulez
User Off Offline

Zitieren
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

alt Re: ZP bar dissapear

MikuAuahDark
User Off Offline

Zitieren
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

alt Re: ZP bar dissapear

Godrulez
User Off Offline

Zitieren
@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?

alt Re: ZP bar dissapear

MikuAuahDark
User Off Offline

Zitieren
user Godrulez hat geschrieben
@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 hat geschrieben
2. how this solves my problem with the bar?
make sure that another script does not use the Hudtxt ID that ZP use

alt Re: ZP bar dissapear

MikuAuahDark
User Off Offline

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

alt Re: ZP bar dissapear

Godrulez
User Off Offline

Zitieren
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
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht