Deep Bot - Twitch Streamer Assistant

Deep Bot => Help/Support => Topic started by: CeadeusX on October 31, 2017, 09:56:00 PM

Title: @savefile@ saving nothing instead of a Number
Post by: CeadeusX on October 31, 2017, 09:56:00 PM
Hey i wannt to calculate EXP for a small minigame. It calculates it but saves the file with nothing in it.
Code: [Select]
@if@[<||@rand@[25|100]||50||@savefile@[db/@user@_exp.txt,@calc@[+|@calc@[*|@rand@[25|50]|@readfile@[db/@user@_lvl.txt]]|@readfile@[db/@user@_exp.txt]]]||@savefile@[db/@user@_exp.txt,@calc@[+|@calc@[*|@rand@[50|100]|@readfile@[db/@user@_lvl.txt]]|@readfile@[db/@user@_exp.txt]]]]
maybe the code isn't perfect. I'm pretty new to this so maybe someone could help me ?
Title: Re: @savefile@ saving nothing instead of a Number
Post by: TheNumbLock on November 01, 2017, 08:03:11 PM
In the custom logs folder, do you have a folder named "db"?
Are you running the bot as admin?
Title: Re: @savefile@ saving nothing instead of a Number
Post by: CeadeusX on November 03, 2017, 02:31:10 AM
yes its running as admin and all folders are there.