Forum

> > CS2D > Scripts > colour say error
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch colour say error

30 Antworten
Seite
Zum Anfang Vorherige 1 2 Nächste Zum Anfang

verschoben colour say error

Primax7
User Off Offline

Zitieren
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 "?"

alt Re: colour say error

SilentDash
User Off Offline

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

alt Re: colour say error

The Camo
User Off Offline

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

alt Re: colour say error

Primax7
User Off Offline

Zitieren
user SilentDash hat geschrieben
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?

alt Re: colour say error

oxytamine
User Off Offline

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

alt Re: colour say error

Primax7
User Off Offline

Zitieren
user oxytamine hat geschrieben
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

alt Re: colour say error

ExecL
User Off Offline

Zitieren
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

alt Re: colour say error

Primax7
User Off Offline

Zitieren
user oxytamine hat geschrieben
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?

alt Re: colour say error

Primax7
User Off Offline

Zitieren
user oxytamine hat geschrieben
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?

alt Re: colour say error

The Camo
User Off Offline

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

alt Re: colour say error

Primax7
User Off Offline

Zitieren
user The Camo hat geschrieben
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

alt Re: colour say error

The Camo
User Off Offline

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

alt Re: colour say error

oxytamine
User Off Offline

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

alt Re: colour say error

Primax7
User Off Offline

Zitieren
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

alt Re: colour say error

DannyDeth
User Off Offline

Zitieren
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.
Zum Anfang Vorherige 1 2 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht