PtokaX forum

Archive => Archived 5.0 boards => Request for scripts => Topic started by: -Slash- on 10 May, 2005, 16:57:11

Title: READFROM IN LUA5
Post by: -Slash- on 10 May, 2005, 16:57:11
hi
i have some scripts that don't work because
attempt to index global readfrom (a nil value)

why? in lua5 the sintax "readfrom" must be changed in something else?
thanks
Title:
Post by: jiten on 10 May, 2005, 20:08:18
QuoteOriginally posted by -Slash-
hi
i have some scripts that don't work because
attempt to index global readfrom (a nil value)

why? in lua5 the sintax "readfrom" must be changed in something else?
thanks
That error is file handling related.
Have a look in Lua 5 HOW-TO threads (e.g. File Handling).

Cheers