Forum

> > CS2D > General > How to use Lua scripts on a server?
ForenübersichtCS2D-ÜbersichtGeneral-ÜbersichtEinloggen, um zu antworten

Englisch How to use Lua scripts on a server?

5 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt How to use Lua scripts on a server?

Vladdus
User Off Offline

Zitieren
When I try to use the 'lua script' command in console I get this error:

LUA ERROR: attempt to call a string value


Any help on how can I use lua on a server?

alt Re: How to use Lua scripts on a server?

ohaz
User Off Offline

Zitieren
just write
1
dofile("sys/lua/FILENAME.lua")
to the end of server.lua in /sys/lua and rename FILENAME.lua to the name of the lua script you want to use

alt Re: How to use Lua scripts on a server?

CmDark
User Off Offline

Zitieren
*bump*
and um im having that problem too
even though my script works 100%
it says LUA ERROR: sys/lua/server.lua:90: atttempt to call a
global 'dotfile' (a nil value)

help please,

its gonna be my [CM] Clan script

And yes i checked everything and i put it in server.lua >.>
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antwortenGeneral-ÜbersichtCS2D-ÜbersichtForenübersicht