Quote:
Originally Posted by Hell?
I found duplicated vBookie plugins when I was checking this issue, they where logically withdrawing double amount of points on bets, I just disabled/deleted the duplicates and apparently that fixed it for me.
|
I just looked at mine and saw three. Is it supposed to look like this?
I have moved my site twice, I wonder if each time I moved servers it installed the plugin
The last two are identical..Here are three of the take user's cash:
Code:
// take the user's cash
$vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "user SET vbbux=vbbux-$amount WHERE userid=" . $vbulletin->userinfo['userid']);
$cash = (int)$vbulletin->userinfo['vbbux'];
Code:
// take the user's cash
$vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "user SET " . $vbulletin->options['vbbux_pointsfield'] . "=" . $vbulletin->options['vbbux_pointsfield'] . "-" . $amount . " WHERE userid=" . $vbulletin->userinfo['userid']);
$cash = (int)$vbulletin->userinfo[$vbulletin->options['vbbux_pointsfield']];
Code:
// take the user's cash
$vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "user SET " . $vbulletin->options['vbbux_pointsfield'] . "=" . $vbulletin->options['vbbux_pointsfield'] . "-" . $amount . " WHERE userid=" . $vbulletin->userinfo['userid']);
$cash = (int)$vbulletin->userinfo[$vbulletin->options['vbbux_pointsfield']];