My english is bad, sorry, but i need some help.
I use the "hudtxt" command in my script, but it does not work correctly. I had to remove the whole project and start again to find the error, but it did not help.
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
addhook("join","pJoin") function pJoin(id) 	pShowML(id) end	 function pShowML(id) 	parse('hudtxt2 '..id..' 0 "Test:" 10 10 0') end
So... About problem: When connect to the server, I can only see the text. But if you call this function from the menu, the text will appear.
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
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
addhook("join","pJoin") addhook("serveraction","one") addhook("menu","two") 	 function pJoin(id) 	pShowML(id) end 	 function pShowML(id) 	parse('hudtxt2 '..id..' 0 "Test:" 10 10 0') end 	 function one(id, act) 	if act == 1 then 		menu(id,'Test,1') 	end end function two(id,title,button) 	if title == "Test" then 		if button == 1 then 			pShowML(id) 		end 	end 	return 1 end
This bug make me cry, help!