(Help) banking script on Fxserver

Hello everyone ,

It seems I have a problem with my banking script . According to the console , it’s related to tonnumber . How am I supposed to fix that ? I tried to just erase it but then it makes the bankbalance in game to undefined .

Here is the code : https://media.discordapp.net/attachments/314383815143587841/345703843503276034/unknown.png

Thanks for your help

It returns undefined without the tonumber()? If that is the case, then there is probably something wrong with the query.

Yes look : http://prntscr.com/g7nde2

here is the new error in the console : http://prntscr.com/g7ne9e

Which is this code : http://prntscr.com/g7nims
Thanks your help ! I appreciate it