Am I doing this correctly?
I have set up a file in MyScripts in the scriptbank. When I run GG I get error that reads-
24 bad argument #1 to ' close' (FILE*expected,got nil)
This is what I have. Is it written wrong or is it another problem.
if readkey01 == 1 then
file = io.open("C:\\scriptbank\\MyScripts\\Test01.txt", "r")
io.input(file)
NameHere = io.read()
io.close(file)
end
TextColor(46,63,3,NameHere,255,0,0)
(Custom) Intel i7 3.3 Mhz. 16 GB fast ram. EVGA Nvidia 1050 Ti 4GB. Dell US27 2560 x 1440. Dell 24 1920 x 1080. Awesome.
Next G. Card EVGA GeForce GTX 970 Superclocked ACX 2.0 Gaming 4GB GDDR5 PCIe3.0 Graphics Card.
Would Like EVGA NVIDIA GeForce GTX 1080 8GB GDDR5X PCIe3.0 Graphics Card
The author of this post has marked a post as an answer.
Go to answer