Forum

> > CS2D > Scripts > cs2d tmw error
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch cs2d tmw error

3 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt cs2d tmw error

Fuly
User Off Offline

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

alt Re: cs2d tmw error

GeoB99
Moderator Off Offline

Zitieren
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))

alt Re: cs2d tmw error

VADemon
User Off Offline

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