Re: Businesses Mod [Mccode V2]
Really nice mod!!
When bankrupting the business I get this error:
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in business_manage.php on line 300
You have decided to bankrupt the business, all members have been fired.
else
{
$send_event = mysql_query(sprintf("SELECT `bmembMember` FROM WHERE `bmembBusiness` = '%u' ORDER BY `bmembId` DESC", $bs['busId']));
while($se = mysql_fetch_assoc($send_event))
{
$text = "The director has chosen to bankrupt the {$inf['busName']} business\, all members have been discharged.";
insert_event($se['bmembMember'], $text);
}
mysql_query(sprintf("DELETE FROM `businesses_members` WHERE (`bmembBusiness` = '%u')", $inf['busId']));
mysql_query(sprintf("DELETE FROM `businesses` WHERE (`busId` = '%u')", $inf['busId']));
echo 'You have decided to bankrupt the business, all members have been fired.';
Anyone else getting this?
No events are sent and the money in the vault disappears :-( I would have thought the vault money should go to the diractor?
Also, each day no money is paid out to the members, i dont think their stats are upgraded either... the cron runs without any errors tho.
I have loaded all the changes i think..
Any help would be appreciated
Thanks again for a great mod!!