Forum

> > CS2D > General > How to use Lua scripts on a server?
Forums overviewCS2D overviewGeneral overviewLog in to reply

English How to use Lua scripts on a server?

5 replies
To the start Previous 1 Next To the start

old How to use Lua scripts on a server?

Vladdus
User Off Offline

Quote
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?

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

ohaz
User Off Offline

Quote
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

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

CmDark
User Off Offline

Quote
*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 >.>
To the start Previous 1 Next To the start
Log in to replyGeneral overviewCS2D overviewForums overview