Nisutec 0 Posted August 19, 2018 Share Posted August 19, 2018 Hallo, How i can read the content of a file. My code don't work. Quote Link to post Share on other sites
0 payonel 21 Posted September 14, 2018 Share Posted September 14, 2018 As a side note, always make your functions and variables `local`, that's the very first thing I noticed when reading your code. You'll want it to be `local checkAuthPlayer = function(p)` Also, and it makes no operational difference, you could declare your functions: `local function checkAuthPlayer(p)` instead, if you like that style more I'm not sure why this code doesn't work, but one thing to consider is that `io.open` uses relative paths if you don't use `/....` paths for files. Thus, `authPlayers` is searched in your current directory. Are you executing this script from a different directory?. Does it throw an exception that the file was not found? [ I assume this is true ] Also, `r` is the default for `io.open`. It is totally fine to specify it, just thought I'd let you know Quote Link to post Share on other sites
Hallo,
How i can read the content of a file.
My code don't work.
Link to post
Share on other sites