Guest ttah11 Posted January 13, 2020 Posted January 13, 2020 local config={ test=true } local configPath=gg.getFile()..'.cfg' gg.saveVariable(config,configPath) print(load(configPath)) @Enyby Am I doing something wrong?
Administrators Enyby Posted January 13, 2020 Administrators Posted January 13, 2020 18 minutes ago, ttah11 said: print(load(configPath)) must be print(assert(loadfile(configPath), "Failed load config from "..configPath)())
Guest ttah11 Posted January 13, 2020 Posted January 13, 2020 Yeah but it says 'attempt to call a nil value'
Administrators Enyby Posted January 13, 2020 Administrators Posted January 13, 2020 Then you doing something wrong because it is work for me. local config={ test=true } local configPath=gg.getFile()..'.cfg' gg.saveVariable(config,configPath) print(assert(loadfile(configPath), "Failed load config from "..configPath)()) [added 0 minutes later]
Guest ttah11 Posted January 13, 2020 Posted January 13, 2020 I don't know what is causing this issue. It fails on both of my phones and on my pc using LDPlayer and it says the same thing.
Guest ttah11 Posted January 13, 2020 Posted January 13, 2020 Oh nevermind I found the issue, thanks for the help.
Question
Guest ttah11
@Enyby Am I doing something wrong?
5 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.