Forum

> > CS2D > Scripts > why can be Å in msg lua?
Forums overviewCS2D overview Scripts overviewLog in to reply

English why can be Å in msg lua?

5 replies
To the start Previous 1 Next To the start

old why can be Å in msg lua?

phalenkO
User Off Offline

Quote
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

old Re: why can be Å in msg lua?

Yates
Reviewer Off Offline

Quote
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.

old Re: why can be Å in msg lua?

phalenkO
User Off Offline

Quote
user Hajt has written
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
edited 2×, last 31.05.18 01:54:49 pm
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview