Hey i wannt to calculate EXP for a small minigame. It calculates it but saves the file with nothing in it.
@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 ?