Guest ttah11 Posted January 13, 2020 Share 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? Link to comment Share on other sites More sharing options...
Administrators Enyby Posted January 13, 2020 Administrators Share Posted January 13, 2020 18 minutes ago, ttah11 said: print(load(configPath)) must be print(assert(loadfile(configPath), "Failed load config from "..configPath)()) Link to comment Share on other sites More sharing options...
Guest ttah11 Posted January 13, 2020 Share Posted January 13, 2020 Yeah but it says 'attempt to call a nil value' Link to comment Share on other sites More sharing options...
Administrators Enyby Posted January 13, 2020 Administrators Share 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] Link to comment Share on other sites More sharing options...
Guest ttah11 Posted January 13, 2020 Share 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. Link to comment Share on other sites More sharing options...
Guest ttah11 Posted January 13, 2020 Share Posted January 13, 2020 Oh nevermind I found the issue, thanks for the help. Link to comment Share on other sites More sharing options...
Question
Guest ttah11
@Enyby Am I doing something wrong?
Link to comment
Share on other sites
5 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.