r/ComputerCraft • u/Drum__Stick • Nov 25 '25
problem with code
(BEEN FIXED) hey guys im having a problem with my code im working on a credit deposit and withdrawal for a casino on a server im in and i have no clue whats happened, it was working completely fine then i started working on the deposit button but it broke and have no clue what happened. the error is showing up on line 251 and im lost on fixing it, can anyone help?

here's my pastebin so you can look at all of it https://pastebin.com/DkW385R4
4
Upvotes
View all comments
Show parent comment
1
u/Drum__Stick Nov 27 '25
you say that the file.readline() cant be converted to number is there anyway to fix that as it was working beforehand and now decided to completely break?
also that line is about having the new amount of money to the disk, and it does have a numerical value, the item.count is the amount of diamonds, the diToCredit is set to 20 adn those are multplied together and added to loadCreditFromDisk which has the amount of credits taken from the disk.