Quote:
Originally Posted by Rushty
Excellent hack, but im having one problem that I can figure.
Im useing the Petz money system, and everyone can place bets o.k. (and its deducted from there money) but when it comes to payout it dosent give anyone there winnings, but does seem to give it to me (defaulting to userid 1 which is my id?) any ideas?
|
Thanks for the bug report. There's an error in includes/functions_vbookie.php, in the function 'vbookie_give_user_cash()'.
You can correct it very simply yourself:
Find:
PHP Code:
$q = "UPDATE " . TABLE_PREFIX . "user SET money=money+$amount WHERE userid=$bbuserinfo[userid]";
Replace that with:
PHP Code:
$q = "UPDATE " . TABLE_PREFIX . "user SET money=money+$amount WHERE userid=$userid";
My apologies for the oversight.