just trying to get my 1st lua script working. Compiler can't seem to get past the C directory address, gives me a [C]: in? error, like it needs more code to figure out where the C drive is.
Can't find anything on the net about this. Anyone see what I'm doing wrong?
Change the direction of your slashes...
Instead of "C:/Users/James/..."
use backslashes as path separators "C:\\\\Users\\\\James\\\\..."
Also, another option is for you to run your file directly from the terminal by using:
lua C:\Users\James\Documents\my_lua\test0.lua
DOH !!! fell for one of the oldest tricks ever. can you spot it? its in the image. A simple exercise for any 1st semester college level programmer. man... and I've been programming on and off for 30 years. So rusty...
clue
@gristy - What about lua C:\\Users\\James\\Documents\\my_lua\\test0.lua ? Does it work?
nope
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.