Forum

> > CS2D > Scripts > Break line bug
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Break line bug

3 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Break line bug

Quattro
GAME BANNED Off Offline

Zitieren
I made a custom msg function, so when someone sends message, server sends msg2 to other players.

Some guy figured out a way to fake a break line and he could write a paragraph with one message

Can someone share what character did he write to do that?

I made a server that saves players names in a text file and I noticed that some lines are broken so my guess is that they had that character in their name so my function detected it as "\n" and made line breaks there, which is not good

alt Re: Break line bug

Mora
User Spielt CS2D

Zitieren
Well never heard that you can imitate it :C even i got interested in it.

Check names by finding "\n" and try to use
string.gsub(text,"\n","")
then censor them or save string.gsub name.

alt Re: Break line bug

Hajt
User Off Offline

Zitieren
brah use this function to display user input on chat

1
2
3
4
5
6
7
function escapeString(text)
	while text:sub(-2) == '@C' do
		text = text:sub(1, -3)
	end
	text = string.gsub(text, "[\166]", " ")
	return text
end

without this i can send such things
https://imgur.com/twoHDSo.jpg
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht