Author Topic: @savefile@ saving nothing instead of a Number  (Read 1200 times)

0 Members and 1 Guest are viewing this topic.

CeadeusX

  • Youngling
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
@savefile@ saving nothing instead of a Number
« 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 ?

TheNumbLock

  • Advisor
  • Councilor
  • **
  • Posts: 4776
  • Karma: +137/-5
    • View Profile
  • Twitch Name: TheNumbLock
Re: @savefile@ saving nothing instead of a Number
« Reply #1 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?
Old Name: RepentGamingTV
Twitch: Here

Need help ASAP?
Join Deepbot's Discord: Discord.Deepbot.tv
Deepbot's Twitter: @DeepSupport

CeadeusX

  • Youngling
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: @savefile@ saving nothing instead of a Number
« Reply #2 on: November 03, 2017, 02:31:10 AM »
yes its running as admin and all folders are there.