English i want fix that

8 replies
Goto Page
To the start Previous 1 Next To the start
06.11.15 10:27:32 pm
Up
Slooper 1
BANNED
Offline Off
hello guys ,if u want help me to fix this script i make it it just test
Code:
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
Multiple account of Ya_Bogalb (a.k.a TN Anonymous)
06.11.15 10:30:21 pm
Up
Masea
Super User
Offline Off
Code:
1
'.. item(iid,'name')..'

Change it, with this:
Code:
1
'.. itemtype(type,'name')..'
Create your UI easy and fast: UI Framework | Go deeper into the darkness and test your bravery: file cs2d Outlast 2 Modification (27)
06.11.15 11:20:15 pm
Up
Slooper 1
BANNED
Offline Off
thank s @user Masea: the prevourise problem is fixed the other problem is : LUA ERROR : sys/lua/1.lua :1: unxpected symbol near 'Ï'
Multiple account of Ya_Bogalb (a.k.a TN Anonymous)
07.11.15 03:44:22 am
Up
TheBosS_
User
Offline Off
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'.

07.11.15 06:11:38 am
Up
VADemon
User
Offline Off
@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)
07.11.15 12:55:14 pm
Up
Slooper 1
BANNED
Offline Off
thank u @user Masea:
Multiple account of Ya_Bogalb (a.k.a TN Anonymous)
07.11.15 02:44:24 pm
Up
Talented Doge
User
Offline Off
By the way, use \169 instead of copyright sign. Just saying.
Talented Doge
07.11.15 03:16:07 pm
Up
VADemon
User
Offline Off
user Talented Doge it doesn't make a difference as long as you know what you're doing with character encoding.
08.11.15 01:15:46 pm
Up
Slooper 1
BANNED
Offline Off
it working now special thanks to masea
Multiple account of Ya_Bogalb (a.k.a TN Anonymous)
To the start Previous 1 Next To the start