CSGOWinBig
CSGOWinBig copied to clipboard
[Solved] Bot crashes after selecting winner
Hi After the bot picks a winner due to potOver (timer is not working at all) and listing the won items (green at the top of the picture) i get the error as shown in the picture. The pot is also cleared, but there is neither a winner notification nor a trade offer with the winnings. Any ideas of a solution?
Thanks in advance
website: http://sexyskins.keiner.bplaced.net/
I think your deposit.php is returning some nonsense that the bot can't interpret as JSON.
i checked the echo of my deposit php and it gave me:
One of the required fields was not sent correctly or was left blank, in deposit.php
i checked the variables that cause the error and all three returned "null"
I think they sould not be null?
Copy-and-paste this as your deposit.php
and nothing should have to change.
https://github.com/ztizzlegaming/CSGOWinBig/blob/master/src/php/deposit.php
The issue is that your bot is receiving something before the JSON (</span>
).
before the i get this
is it normal thgat it shows & instead of the apikey?
UPDATE: Hard-Coding the api key and password solved the json problem. now i only have to fix the timer because it wants to stop an not-running timer (Object reference not set to an object instance)
Ok, so sounds like your passwords.txt file isn't being found or doesn't have an API key in it. You should open another issue for your second problem because it's not related.
i remembered that i replaced the getsteamapikey() in the default.php withe the different keys needed for the files ($dbSteamAPIKey, $chatAPIKey) but i forgot about the one in deposit.php