Forum

> > CS2D > Scripts > error: looser 's script
Forums overviewCS2D overview Scripts overviewLog in to reply

English error: looser 's script

3 replies
To the start Previous 1 Next To the start

old error: looser 's script

super123s
User Off Offline

Quote
I download and use the looser mod lua cod.in the course of use I noticed some errors on the console.
>location: the commands in the mod
1/commands1:
•
1
cod_gpxp [...]
are two errors in the command
error 1:
1
LUA ERROR: sys/lua/cod_gamemode.lua:1714: attempt to perform arithmetic on local 'xp' (a string value)
error 2:
1
LUA ERROR: sys/lua/cod_gamemode.lua:1714: attempt to perform arithmetic on field '?' (a nil value)
some code in the associated commands and code at line 1714
Spoiler >

2/commands2:
1
2
3
4
cod_rp[code]
only one error in the command  :D 
error:
[code]LUA ERROR: sys/lua/cod_gamemode.lua:1706: bad argument #1 to 'msg2' (number expected, got string)
some code in the associated commands and code at line 1706
Spoiler >

if you're smart, try to fix this view

old Re: error: looser 's script

Apache uwu
User Off Offline

Quote
Well...

1
LUA ERROR: sys/lua/cod_gamemode.lua:1706: bad argument #1 to 'msg2' (number expected, got string)

1
cod_msg2('Scripter '..player(id,"name")..' resets your xp and your lvl!@C')

I'm assuming msg2 requires an playerID...

1
cod_msg2(id,'Scripter '..player(id,"name")..' resets your xp and your lvl!@C')

My best bet.

old Re: error: looser 's script

super123s
User Off Offline

Quote
does n't work
error
1
LUA ERROR: sys/lua/cod_gamemode.lua:1706: attempt to concatenate local 'txt' (a nil value)
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview