Forum

> > CS2D > General > "A" script error - StrikerD2000
Forums overviewCS2D overviewGeneral overviewLog in to reply

English "A" script error - StrikerD2000

5 replies
To the start Previous 1 Next To the start

old "A" script error - StrikerD2000

StrikerD2000
BANNED Off Offline

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

old Re: "A" script error - StrikerD2000

Bowlinghead
User Off Offline

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

old Re: "A" script error - StrikerD2000

VADemon
User Off Offline

Quote
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
To the start Previous 1 Next To the start
Log in to replyGeneral overviewCS2D overviewForums overview