Forum

> > CS2D > Scripts > Why my hudtxt script not working ?
Forums overviewCS2D overview Scripts overviewLog in to reply

English Why my hudtxt script not working ?

8 replies
To the start Previous 1 Next To the start

old Why my hudtxt script not working ?

IchigoKurosaki
User Off Offline

Quote
1
2
3
4
5
6
7
8
9
addhook("join","join")
parse("hudtxt2 0 0 "©000000000Script By : Ichigo" 1 380")
 parse("hudtxt2 0 0 "©255255255Sensitive2d.forumid.net" 252 10")
  parse("hudtxt 0 "©252000000Don't cheat!" 450 220")
    parse("msg Welcome("player","name")!")
end
 end
  end
    end

why my script not working ??

sorry i newbie scripter, i know script yesterday :v

old Re: Why my hudtxt script not working ?

CaneCorso
User Off Offline

Quote
lel , well don't ask for error's , script totally dead ...
RIP ...
working script .
addhook("join","join")
function join(id,txt)
	for id=1,32 do
		if player(id,'exists') then
		parse('hudtxt2 '..id..' 1 "©000000000Script By : Ichigo" 1 380')
		parse('hudtxt2 '..id..' 2 "©255255255Sensitive2d.forumid.net" 252 10')
		parse('hudtxt2 '..id..' 0 "©252000000Dont cheat!" 450 220')
		end
	end
end


errors : first and the biggest one is function lol ...
why alot of ends ? we add end to close function , if , for ...
huds are totally bugged !
we don't tab parse '-'
we don't parse msg we use:
msg2(player,"©000000255Welcome"..player(p,"name").."!")
edited 5×, last 08.02.15 02:44:59 am

old Re: Why my hudtxt script not working ?

Bowlinghead
User Off Offline

Quote
Also you may use it like this (perfomance reasons):
1
2
3
4
5
6
7
addhook("join","join")
function join(id,txt)
	parse('hudtxt 1 "©000000000Script By : Ichigo" 1 380')
	parse('hudtxt 2 "©255255255Sensitive2d.forumid.net" 252 10')
	parse("hudtxt 0 "©252000000Don't cheat!" 450 220")
	msg2(id,"Welcome, "..player(id,"name").."!")
end

tabbing in US.de is still not perfect.

old Re: Why my hudtxt script not working ?

Muxye
User Off Offline

Quote
@user Infinite Rain: ,
1
2
3
4
5
6
7
addhook("join","joinFunc")
function joinFunc()
	parse("hudtxt2 1 "©000000000Script By : Ichigo" ")
	parse("hudtxt2 4 "©255255255Sensitive2d.forumid.net" ")
	parse("hudtxt 0 "©252000000Don't cheat!" ")
	msg2(id,"Welcome("player","name")!")
end

old Re: Why my hudtxt script not working ?

Rainoth
Moderator Off Offline

Quote
@user Muxye: If you don't know how to lua script, don't post incorrect code. It's nowhere near good or even close to what user Infinite Rain suggested and I see you post incorrect codes in multiple threads.

1
2
3
4
5
6
7
8
parse('hudtxt 1 "©000000000Script By : Ichigo" 1 380')
parse('hudtxt 2 "©255255255Sensitive2d.forumid.net" 252 10')
parse("hudtxt 0 "©252000000Don't cheat!" 450 220")

addhook("join","_join")
function _join(id)
     msg2(id,"Welcome, "..player(id,"name").."!")
end

P.S. You didn't write "allign"
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview