Forum

> > CS2D > Scripts > colour say error
Forums overviewCS2D overview Scripts overviewLog in to reply

English colour say error

30 replies
Page
To the start Previous 1 2 Next To the start

moved colour say error

Primax7
User Off Offline

Quote
Hi i have some problem in colour say
Those script with admin say + colour i will get some error
when i download them i get this"?000255000" not "©"
so it just show this in game "?000255000primax7"
can anyone help me?

I just try many times changing the "?" to "©" when i save i get error make it become "?"

old Re: colour say error

SilentDash
User Off Offline

Quote
1
2
3
4
5
6
7
8
9
10
11
admins={} -- put there your usgn number

addhook ("say","lol3")
function lol3(id,txt)
local tox=txt:sub(1,10)
	if player(id,"usgn")=="admin" then
	local fullstring = txt:sub(12)
	msg("©000255000"..player(id,"name")..": "..fullstring)
	return 1
	end
end
you can use this...

old Re: colour say error

The Camo
User Off Offline

Quote
Make a new word file and just change extension to .lua.
Then you will have ©, I'm not that sure, try it.

old Re: colour say error

Primax7
User Off Offline

Quote
user SilentDash has written
1
2
3
4
5
6
7
8
9
10
11
admins={} -- put there your usgn number

addhook ("say","lol3")
function lol3(id,txt)
local tox=txt:sub(1,10)
	if player(id,"usgn")=="admin" then
	local fullstring = txt:sub(12)
	msg("©000255000"..player(id,"name")..": "..fullstring)
	return 1
	end
end
you can use this...


It not working

can i know which word file are you all using?

old Re: colour say error

oxytamine
User Off Offline

Quote
Using Notepad should work actually. If it does not, decode the character and insert it's string instead.

old Re: colour say error

Primax7
User Off Offline

Quote
user oxytamine has written
Using Notepad should work actually. If it does not, decode the character and insert it's string instead.


how to do that?

notepad really don't work

old Re: colour say error

ExecL
User Off Offline

Quote
hey primax7 i have this cool one it works try it

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
if p == nil then p = {} end

--------USGN-Tables--------

p.owner = {} 
p.viceowner = {} 
p.admin = {} 
p.mod = {} 
p.member = {} 
p.vip = {} 

function status(table,id)
     for _, u in ipairs(table) do
          if player(id,"usgn") == u then
               return true
          end
     end
     return false
end

addhook("say","p.psay")
function p.psay(id,txt)
     if txt == "!resetscore" then
          parse("setscore "..id.." 0")
          parse("setdeaths "..id.." 0")
          msg("©041023000"..player(id,"name").." used !ResetScore")
          return 1
          elseif string.lower(txt) ~= "rank" then
          if status(p.owner,id) then
               msg("©000255255"..player(id,"name").." [Owner]:"..txt)
               return 1
          elseif status(p.viceowner,id) then
               msg("©255000255"..player(id,"name").." [Vice-Owner]: "..txt)
               return 1
          elseif status(p.admin,id) then
               msg("©255255255"..player(id,"name").." [Admin]: "..txt)
               return 1
          elseif status(p.mod,id) then
               msg("©000000255"..player(id,"name").." [Moderator]: "..txt)
               return 1
          elseif status(p.member,id) then
               msg("©255155000"..player(id,"name").." [Member]: "..txt)
               return 1
          elseif status(p.vip,id) then
               msg("©255000000"..player(id,"name").." [V.I.P]: "..txt)
               return 1
          end
     end
end

old Re: colour say error

Primax7
User Off Offline

Quote
user oxytamine has written
Try Notepad again. Save file in ASCII encoding and try again. I'm sure it should work.


Oh no... now i found problems 2 !
my notepad doesn't have "ASCII"
i save them in ANSI and have error
ASCII and ANSI is the same?

old Re: colour say error

Primax7
User Off Offline

Quote
user oxytamine has written
I used UTF-8 and it saves the copyright sign. You can download it here.


not working in game ~
or i need to reinstall my notepad but where can i install?

old Re: colour say error

The Camo
User Off Offline

Quote
Hmm, on my XP(SP2) I got...

ANSI
Unicode
Unicode big endian (Sounds like Unicorn Big Indian)
UTF-8

Maybe he is using XP too.

Edit: Gosh I'm late..

old Re: colour say error

Primax7
User Off Offline

Quote
user The Camo has written
Hmm, on my XP(SP2) I got...

ANSI
Unicode
Unicode big endian (Sounds like Unicorn Big Indian)
UTF-8

Maybe he is using XP too.

Edit: Gosh I'm late..


erm... im using window 7 and i have the same ecoding like urs

old Re: colour say error

The Camo
User Off Offline

Quote
It is Unicode char. Maybe you got a virus?

Search for it in CMap

In search type: Character map

If all fails, try using Notepad++ Maybe it has a fix for that problem, since it has all programing languages in it.

old Re: colour say error

oxytamine
User Off Offline

Quote
Unicode should work, try Unicode. Also, the link I gave you - that's the script with saved copyright sign.

old Re: colour say error

Primax7
User Off Offline

Quote
Unicode is 100% cannot use in server
it just show you a "lua error"
i just wan to have a setup for notepad cause my notepad don't have ASCII can anyone help me get setup ?

Noetpad++ have no ASCII also cannot use

old Re: colour say error

DannyDeth
User Off Offline

Quote
Why the fuck are you telling him to use Unicode? CS2D reads it's files as ANSI!! The reason the copyright symbol isn't working is probably because he is using a different set of characters to what CS2D uses.
To the start Previous 1 2 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview