Forum

> > CS2D > Scripts > Roleplay/Citylife 2
Forums overviewCS2D overview Scripts overviewLog in to reply

English Roleplay/Citylife 2

8 replies
To the start Previous 1 Next To the start

old Roleplay/Citylife 2

Spook MQ Hacker
BANNED Off Offline

Quote
i download yasdays roleplay

and there is an error

1
LUA ERROR: sys/lua/server.lua:3:Attemp to call global 'dofile' (a nil value)

Error

old Re: Roleplay/Citylife 2

EngiN33R
Moderator Off Offline

Quote
Wait that's weird, how can a built-in function be defunct? Are you sure you typed everything out exactly as it was? Copy it from the log or something. Cause unless you've replaced the dofile function with nil this is not possible.

old Re: Roleplay/Citylife 2

Alistaire
User Off Offline

Quote
user Spook MQ Hacker has written
1
LUA ERROR: sys/lua/server.lua:3:Attemp to call global 'dofile' (a nil value)


It means your server.lua has a fault; you didn't use dofile right, it has to be like "dofile('sys/lua/ololol.lua')"

old Re: Roleplay/Citylife 2

EngiN33R
Moderator Off Offline

Quote
@Cuchulainn
No it doesn't, it means that the 'dofile' function doesn't exist which is impossible.

old Re: Roleplay/Citylife 2

CmDark
User Off Offline

Quote
if somehow it screwed up dofile

just define dofile somewhere in there for a temporary fix.

1
2
3
4
function dofile (stdin)
      local d = assert(loadfile(stdin))
      return d()
    end
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview