Forum

> > CS2D > Scripts > cs2d tmw error
Forums overviewCS2D overview Scripts overviewLog in to reply

English cs2d tmw error

3 replies
To the start Previous 1 Next To the start

old cs2d tmw error

Fuly
User Off Offline

Quote
LUA ERROR: sys/lua/autorun/TooManyWeapons.lua:388: bad argument #1 to 'print' (string
expected, got nil)
-> [C]: in function 'print'
-> sys/lua/autorun/TooManyWeapons.lua:388: in function <sys/lua/autorun
TooManyWeapons.lua:383>
-> in Lua hook 'say', params: 1, 'tmw'

Spoiler >

old Re: cs2d tmw error

GeoB99
Moderator Off Offline

Quote
Try with this and tell me if it works or no. If the issue still persist, post it here.
1
print("targetID", text:find(" ?(%d+)", 5))

old Re: cs2d tmw error

VADemon
User Off Offline

Quote
Oh well, I don't know how this line made it's way uncommented into release.
• Since it's a print function, it doesn't do anything, just remove that line.

Since I use file cs2d [DEV] Improved print() 1.1 I don't have this problem when testing code. Long story short: default print() function is crap and doesn't support multiple values string.find() returns
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview