Jump to content
MakeWebGames

Recommended Posts

  • Replies 231
  • Created
  • Last Reply

Top Posters In This Topic

Posted

Re: Businesses Mod [Mccode V2]

i'm not complaining at all. im very happy that this mod was released and its a great mod. i'm merely pointing out that the director cant make money. i would fix it myself but i don't know how

Posted

Re: Businesses Mod [Mccode V2]

 

well how can the director take the money out of the vualt and put it intohis pocket? also it doesn't show any error it just redirects me to the page taht shows my business.

ALSO i'm testing it. i have a car dealership and i'm the only member. i put 900,000,000 into the vualt as test money. after rollover theirs 29k left. whats up with this? i slightly edited the business_cron thing. heres what it is now.

$new_profit = (($new_customers + rand(-4, 8)) * ((($bs['classCost'] / 10000) * rand(2, 4)) / 50) * ($amount + 1));

Dont you just love those that complain. Any mod that deals with cash on large basis which im sure this one does is bound to have a few snags. So it would be a decent gesture to explain the problem rather than making it a public spectacle....

True True :-)

Posted

Re: Businesses Mod [Mccode V2]

If They Have A Job That You Made For The job.php File This Will Not Be Able To Get A Job In This Business Mod.

Find:

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Add Under:

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Posted

Re: Businesses Mod [Mccode V2]

 

I've done a little investigating. It seems that the 'busEmployees' database field does not update. It stands as 0 all the time, even when i try to upgrade member capacity. Can anyone help?

And is there any special reason why we can't add businesscron to the daycron?

Plus, thanks to Richard and KiX, great mod!

1) Nope there is no reason, I presume Richard did it like that to keep it a bit more organised.

2) It is working quite well on my side. could u give us a bit more information please.

 

Nevermind, I fixed it. New problem though. :roll: Hope you can help.

In KiX's upgrade business mod, I have a little problem. I get no errors, it does not take the money, and the database is not updated. Here is the code line:

mysql_query(sprintf("UPDATE `businesses` SET `busEmployees` = busEmployees+5, `busMoney` = busMoney - ".$price_upgrade." WHERE `busDirector` = ".$ir['userid'].""));

Sorry for my n00bness.

 

Ya I Know Im Working On That One To.

Alrigth, thanks, :wink:

Posted

Re: Businesses Mod [Mccode V2]

Fatal error: Call to undefined function business_alert() in /home/mrmaxey/public_html/business_manage.php on line 384

still the same

there are 12 global $ir, $inf; in that script and i assume you only ment on line 347

edited that nothing happend still the same error

chainged all.

still the same

$fr = mysql_fetch_assoc($fetch_rank);

line384 business_alert($inf['busId'], "Member ID".$it['appMember']." has been accepted into the business.");

mysql_query(sprintf("INSERT INTO `businesses_members` (`bmembId`, `bmembMember`, `bmembBusiness`, `bmembCash`, `bmembRank`) VALUES ('NULL', '%u', '%d', '%d', '%d')", $it['appMember'], $inf['busId'], $fr['rankCash'], $fr['rankId']));

Posted

Re: Businesses Mod [Mccode V2]

hey guys i don't know if you already done this and are still stuck on how to upgrade your business you need to

open business_manage

Find

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

And Replace With

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

there are 2 in total you need you need to change.

and you also might have to add

$db, $ir, $inf

to your

business_manage

&

business_home

i hope this helps am sorry if this is old and every1 has already done this but i just register lol hehe.

SouiAssassin

Posted

Re: Businesses Mod [Mccode V2]

just relised how wrong i was very sorry should of looked further into the code beofore posting i couldn't get my upgarde to work so i took away the upgrade and set the defult vaule to 15 so all my business can only have 15 max employees :P

sorry again

Posted

Re: Businesses Mod [Mccode V2]

Thanks for the great mod. Here is an error I get

Fatal error: Call to undefined function: donate_cash() in /home/colone/public_html/business_manage.php on line 22

Posted

Re: Businesses Mod [Mccode V2]

 

Thanks for the great mod. Here is an error I get

Fatal error: Call to undefined function: donate_cash() in /home/colone/public_html/business_manage.php on line 22

Try changing line 22 to:

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Posted

Re: Businesses Mod [Mccode V2]

And when I try to accept an application it tells me:

Your business cannot hold more members at this time. And I don't even have any members yet.

Posted

Re: Businesses Mod [Mccode V2]

I set the standard number for all new businesses in the database to five. Not a wery elegant solution, but I'm a n00b and it get's the job done. And then I changed the code so that the price of upgrading is not dependant of the max amount of employees, but the price of the business + the price of the upgrades.

Posted

Re: Businesses Mod [Mccode V2]

 

ALSO i'm testing it. i have a car dealership and i'm the only member. i put 900,000,000 into the vualt as test money. after rollover theirs 29k left. whats up with this? i slightly edited the business_cron thing. heres what it is now.

$new_profit = (($new_customers + rand(-4, 8)) * ((($bs['classCost'] / 10000) * rand(2, 4)) / 50) * ($amount + 1));

I've got the same problem. I guess it's got something to do with either the

`busCash` = `busCash` + '%d'

or

($new_profit - $bs['busCash'])

part in the business_cron.php. Am I right? I'm looking for a fix, but I hate MySQL. Argh, how I wish I was back in the good ol' flashdays.

Posted

Re: Businesses Mod [Mccode V2]

 

very very very nice mod i cant belive your giving it away for free

This mod doesn't work. I have it on my game and you cant add anyone to your business.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...