Forum

> > CS2D > General > "A" script error - StrikerD2000
ForenübersichtCS2D-ÜbersichtGeneral-ÜbersichtEinloggen, um zu antworten

Englisch "A" script error - StrikerD2000

5 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt "A" script error - StrikerD2000

StrikerD2000
BANNED Off Offline

Zitieren
@user StrikerD2000:

Hello unrealsoftware.de users !

Today i get a counter-strike 2D error, idk what this error named but i named it A error

i put in the script
1
2
3
4
if (but==1) then
	parse("setmoney "..id.." 16000")
	msg2(id,"©000255000You have been got ©255255255".."16000$")
end

But when i played the message comes to me like this


what i have to do to fix this stupid error

alt Re: "A" script error - StrikerD2000

Bowlinghead
User Off Offline

Zitieren
Replace "©" with string.char(169) or similiar
1
msg2(id,string.char(169).."000255000You have been got "..string.char(169).."25525525516000$")
2× editiert, zuletzt 28.01.17 10:12:01

alt Re: "A" script error - StrikerD2000

VADemon
User Off Offline

Zitieren
You need to fix the encoding in your text editor (I hope it's at least Notepad++ in your case):

thread cs2d HC 1.9.3 error?

For Notepad++:
• Encoding > Convert to ANSI > Save this file

This error happens because the file is saved as UTF-8 without BOM then CS2D reads this file as if it was 8-bit ANSI and sees two characters (16 bits) instead of a single © (8 bit), because this character occupies 16 bits in UTF-8
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antwortenGeneral-ÜbersichtCS2D-ÜbersichtForenübersicht