Forum

> > CS2D > Scripts > i want fix that
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch i want fix that

8 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt i want fix that

Slooper 1
BANNED Off Offline

Zitieren
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

alt Re: i want fix that

Masea
Super User Off Offline

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

alt Re: i want fix that

Slooper 1
BANNED Off Offline

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

alt Re: i want fix that

TheBosS_
User Off Offline

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

alt Re: i want fix that

VADemon
User Off Offline

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