Author Topic: RandomMoney.php ERROR  (Read 3258 times)

Offline Suzie Q

RandomMoney.php ERROR
« on: December 04, 2010, 02:38:39 am »
When anyone buys 'Random Money' (Get a random amount of money, between -190 and 190!) I am almost consistently getting this error regardless of how much money each user has to their credit or how much I edit the amount one can win or lose.

Fatal error: Function name must be a string in /home/suzie/public_html/forum/Sources/shop/items/RandomMoney.php on line 83

This is the code at line 83 in RandomMoney.php:
$row = $smfFunc['db_fetch_assoc']($result);

Anyone know why Im getting this error or what I can do to fix it?

SMF 2 RC4 - Default Curve

Thanks.

Offline Shishikabob

Re: RandomMoney.php ERROR
« Reply #1 on: February 06, 2011, 12:48:25 pm »
I realize you wrote this a while ago but on the off chance you do read this, I think the problem is with giving a negative amount of money.  If you set it so that your members can only receive a positive amount (like between 1 and 300, instead of -190 and 190) it should work.