PtokaX forum

Archive => Archived 4.0 boards => Help with Lua 4 scripts => Topic started by: servaks on 16 October, 2003, 21:06:16

Title: Include in LUA
Post by: servaks on 16 October, 2003, 21:06:16
Is it possible to INCLUDE some files in LUA script using some command ?

Like including files in php using - include("file.txt")

/shipis
Title:
Post by: pHaTTy on 16 October, 2003, 21:29:22
you mean other lua files?

assert(dofile("filesnamehere.lua"),"Then error is not found here")


-phatty
Title:
Post by: OpiumVolage on 16 October, 2003, 21:52:17
Nice one, just one thing: dofile() is the include, and assert() manage errors.
This seemed to be unclear for some.
Title:
Post by: servaks on 17 October, 2003, 17:30:19
Thnx...
Forks fine...