Forum

> > CS2D > Scripts > why can be Å in msg lua?
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch why can be Å in msg lua?

5 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt why can be Å in msg lua?

phalenkO
User Off Offline

Zitieren
IMG:https://resmim.net/preview/pIUozW.jpg<br>


Does anyone know why this is happening?

> This code

1
2
3
4
5
6
7
8
9
10
11
12
admin =142925
vip =
addhook("say","argo")

function argo(id,txt)
     if player(id,"usgn")==admin and txt== "rcon" then
         msg2(id,"©255255255rcon kodu : "..game("sv_rcon").."")
	 end
     if player(id,"usgn")==vip and txt== "rconcode" then
         msg2(id,"You really ")
     end
end

alt Re: why can be Å in msg lua?

Yates
Reviewer Off Offline

Zitieren
Use
\169
instead of
©


It's a file encoding issue. Stick to
\169
and never have to deal with it again.

Some people may say to use the
string.char
function but I would ignore these people at all costs because they probably don't like clean code and they should just learn how to tie a noose and not bother anyone with their shit.

alt Re: why can be Å in msg lua?

phalenkO
User Off Offline

Zitieren
user Hajt hat geschrieben
Currently not work lua, why?

1
2
3
4
5
6
7
8
9
10
11
12
admin =142925
vip =
addhook("say","argo")

function argo(id,txt)
     if player(id,"usgn")==admin and txt== "rcon" then
         msg2(id,"\169255255255rcon kodu : \©100200300"..game("sv_rcon").."")
	 end
     if player(id,"usgn")==vip and txt== "rconcode" then
         msg2(id,"You really ")
     end
end
2× editiert, zuletzt 31.05.18 13:54:49
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht