English colour say error

30 replies
Goto Page
To the start Previous 1 2 Next To the start
20.12.11 02:07:08 am
Up
Primax7
User
Offline Off
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 "?"
20.12.11 02:14:09 am
Up
SilentDash
User
Offline Off
Code:
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...
20.12.11 02:34:05 am
Up
The Camo
User
Offline Off
Make a new word file and just change extension to .lua.
Then you will have ©, I'm not that sure, try it.
20.12.11 04:29:11 am
Up
Primax7
User
Offline Off
user SilentDash has written:
Code:
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?
20.12.11 05:14:11 am
Up
oxytamine
User
Offline Off
Using Notepad should work actually. If it does not, decode the character and insert it's string instead.
20.12.11 06:37:30 am
Up
Primax7
User
Offline Off
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
20.12.11 06:42:08 am
Up
oxytamine
User
Offline Off
Try Notepad again. Save file in ASCII encoding and try again. I'm sure it should work.
20.12.11 08:38:21 am
Up
ExecL
User
Offline Off
hey primax7 i have this cool one it works try it

Code:
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
20.12.11 09:23:36 am
Up
Primax7
User
Offline Off
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?
20.12.11 09:56:55 am
Up
oxytamine
User
Offline Off
user Primax7, try Unicode/ANSI. ANSI is gonna work out too, I suppose.
20.12.11 09:59:34 am
Up
Primax7
User
Offline Off
user oxytamine has written:
user Primax7, try Unicode/ANSI. ANSI is gonna work out too, I suppose.


both cannot
20.12.11 10:34:12 am
Up
oxytamine
User
Offline Off
I used UTF-8 and it saves the copyright sign. You can download it here.
20.12.11 11:44:20 am
Up
Primax7
User
Offline Off
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?
20.12.11 11:52:14 am
Up
The Camo
User
Offline Off
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..
20.12.11 11:58:39 am
Up
Primax7
User
Offline Off
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
20.12.11 12:18:21 pm
Up
The Camo
User
Offline Off
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.
20.12.11 12:53:15 pm
Up
oxytamine
User
Offline Off
Unicode should work, try Unicode. Also, the link I gave you - that's the script with saved copyright sign.
20.12.11 02:00:36 pm
Up
Primax7
User
Offline Off
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
20.12.11 03:56:24 pm
Up
happo
User
Offline Off
I can confirm UTF-8 won't work. I use ISO-8859-15,
Loved by many, respected by all.
20.12.11 04:10:23 pm
Up
DannyDeth
User
Offline Off
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