Quote:
Originally Posted by Black Tiger
Yes that is correct. The way to do this I've found in this thread too. It's just 1 page before posting #392, depending on how you have the pages set.
I Just took over the example and that worked it's in post #390.
Cool. Which code did you put in there to have Icash recognize it's the "new window" version of the game and not the normal version?
|
Charge game price in new window:
Create a new plugin called ibproarcade_play_game_popup
Use Blaine0002 code, just change the amount and your_error message to what you did for the ibproarcade_play_game plugin @ post 392
$amount = '1';
if (($vbulletin->userinfo[$vbulletin->options['icashf']] - $amount) < 0) {
eval(standard_error(fetch_error('your_error')));
}
$vbulletin->db->query("update " . TABLE_PREFIX . "user set {$vbulletin->options['icashf']}={$vbulletin->options['icashf']}-'{$amount}' where userid='{$vbulletin->userinfo['userid']}'");