Forum

> > CS2D > Scripts > bug in msg
Forums overviewCS2D overview Scripts overviewLog in to reply

English bug in msg

5 replies
To the start Previous 1 Next To the start

moved bug in msg

DarkBooy
User Off Offline

Quote
hello us , i make Color say system. but i have bug like :


1
msg("©000255255" .. player(id,"name") .. "©255255255" " »Admin«"©255128000": "©000255000" .. text)

• Where is bug ? '

> Fix it please



And Thanx...

old Re: bug in msg

Cure Pikachu
User Off Offline

Quote
Some of the double quotes caused it. Fix:
1
msg("©000255255"..player(id,"name").."©255255255 »Admin« ©255128000: ©000255000"..text)

old Re: bug in msg

DarkBooy
User Off Offline

Quote
@user Cure Pikachu:



i need more help like :

if player (admin) join ct ...
1
msg("©000000255"..player(id,"name").."

elseif join T
1
msg("©255000000"..player(id,"name").."


please make .... Thanx

old Re: bug in msg

aleksix
User Off Offline

Quote
Quote
i need more help like :

if player (admin) join ct ...
1
2
1
msg("©000000255"..player(id,"name").."


elseif join T
1
2
1
msg("©255000000"..player(id,"name").."



please make .... Thanx


You mean, when admin joins the server, he automatically joins CT with this message?

old Re: bug in msg

DarkBooy
User Off Offline

Quote
I mean if he say...txt

if player(admin) join CT ... name(admin) will be color Blue

.... but if join T name (admin) will be color Red


msg("©000000255"..player(id,"name").." <--- here if admin join 'CT'


msg("©255000000"..player(id,"name").." <-- here if admin join 'T'

old Re: bug in msg

EngiN33R
Moderator Off Offline

Quote
1
2
3
4
5
6
7
8
9
local mtext = player(id,"name").."©255255255 »Admin« ©255128000: ©000255000"..text)
if player(id,"team")==1 then --T
	mtext=string.char(169).."255000000"..mtext
elseif player(id,"team")==2 then --CT
	mtext=string.char(169).."050150255"..mtext
elseif player(id,"team")==0 then --SPEC
	mtext=string.char(169).."255220000"..mtext
end
msg(mtext)
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview