Forum

> > CS2D > Scripts > i want fix that
Forums overviewCS2D overview Scripts overviewLog in to reply

English i want fix that

8 replies
To the start Previous 1 Next To the start

old i want fix that

Slooper 1
BANNED Off Offline

Quote
hello guys ,if u want help me to fix this script i make it it just test
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
addhook('say','say_hook')
function say_hook(id,txt)
if txt=='!myusgn' then
msg2(id,'	�132000162Your usgn is : '..player(id,'usgn')..' In unreal software')
elseif txt=='!resetscore' then
parse('setscore '..id..' 0')
parse('setdeaths '..id..' 0')
msg2(id,'�059143178Player '..player(id,'name')..' reset their score') 
end
end


addhook('join','slooper_join')
function slooper_join(id)
msg2(id,'�059197122Player '..player(id,'name')..' Has joined game have fun !')
end

addhook('drop','drop_hook')
function drop_hook(id,iid,type,ain,a,mode,x,y)
msg2(id,'�122155186 '..player(id,'name')..' Droped '.. item(iid,'name')..'')
end

Error : LUA ERROR : sys/lua/1.lua:20 attempt concatenate a boolean value
please comment

old Re: i want fix that

Masea
Super User Off Offline

Quote
1
'.. item(iid,'name')..'
Change it, with this:
1
'.. itemtype(type,'name')..'

old Re: i want fix that

Slooper 1
BANNED Off Offline

Quote
thank s @user Masea: the prevourise problem is fixed the other problem is : LUA ERROR : sys/lua/1.lua :1: unxpected symbol near 'Ï'

old Re: i want fix that

TheBosS_
User Off Offline

Quote
If you're using Notepad++, select the 'Encoding' tab and after that a small menu will pop up. From this small menu, select 'Convert to ANSI'.

old Re: i want fix that

VADemon
User Off Offline

Quote
@user Slooper 1: look at the code you posted. Lines 4, 8, 15, 20. Don't you see something's being displayed wrong?
Follow user TheBosS_' instructions to fix it.

@user TheBosS_: I was surprised and amused to see my own image, made 1.5 years ago, without a link to the corresponding post. (upd: found it)
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview