Forum

> > CS2D > Scripts > Roleplay/Citylife 2
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Roleplay/Citylife 2

8 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Roleplay/Citylife 2

Spook MQ Hacker
BANNED Off Offline

Zitieren
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

alt Re: Roleplay/Citylife 2

EngiN33R
Moderator Off Offline

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

alt Re: Roleplay/Citylife 2

Alistaire
User Off Offline

Zitieren
user Spook MQ Hacker hat geschrieben
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')"

alt Re: Roleplay/Citylife 2

EngiN33R
Moderator Off Offline

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

alt Re: Roleplay/Citylife 2

CmDark
User Off Offline

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