SaMz Posted March 30, 2009 Posted March 30, 2009 Re: Businesses Mod [Mccode V2] does not give IQ Quote
Bubbl3z Posted March 30, 2009 Posted March 30, 2009 Re: Businesses Mod [Mccode V2] :-) they always do lol but nvr appreciate what they get Quote
jon182 Posted March 31, 2009 Posted March 31, 2009 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 Quote
MyGunWars Posted March 31, 2009 Posted March 31, 2009 Re: Businesses Mod [Mccode V2] I Have A Good Idea Because I See Users Geting A Job In This Mod And In The Games Jobs Is There A Way To Block Them So They Dont? Quote
Bubbl3z Posted March 31, 2009 Posted March 31, 2009 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 :-) Quote
MyGunWars Posted April 1, 2009 Posted April 1, 2009 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. Quote
Eruondo Posted April 2, 2009 Posted April 2, 2009 Re: Businesses Mod [Mccode V2] But that won't stop them from quitting theire job, getting a job in a company and then get a new standard job? Quote
MyGunWars Posted April 2, 2009 Posted April 2, 2009 Re: Businesses Mod [Mccode V2] Ya I Know Im Working On That One To. Quote
Eruondo Posted April 2, 2009 Posted April 2, 2009 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: Quote
RazorBladerz Posted April 3, 2009 Posted April 3, 2009 Re: Businesses Mod [Mccode V2] Fatal error: Call to undefined function business_alert() in /home/razor/public_html/business_manage.php on line 384 Quote
Uridium Posted April 3, 2009 Posted April 3, 2009 Re: Businesses Mod [Mccode V2] just add $db to the globals so if its.... global $ir, $inf; then change to global $db, $ir, $inf; and you should be good to go Quote
mrmaxey Posted April 4, 2009 Posted April 4, 2009 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'])); Quote
SouIAssassin Posted April 10, 2009 Posted April 10, 2009 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 Quote
SouIAssassin Posted April 10, 2009 Posted April 10, 2009 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 Quote
Harley Posted April 12, 2009 Posted April 12, 2009 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 Quote
Isomerizer Posted April 12, 2009 Posted April 12, 2009 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. Quote
Harley Posted April 12, 2009 Posted April 12, 2009 Re: Businesses Mod [Mccode V2] Thanks, that fixed it. This is a wonderful mod. Thanks for sharing with everyone. +1 Quote
Harley Posted April 12, 2009 Posted April 12, 2009 Re: Businesses Mod [Mccode V2] When I try to add memebers to my business it tells me I don't have enough gold in the vault. Any fix for this? Quote
Harley Posted April 12, 2009 Posted April 12, 2009 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. Quote
Eruondo Posted April 13, 2009 Posted April 13, 2009 Re: Businesses Mod [Mccode V2] It's the same error I had. It's because the code does not write to the database, so max members in the database is zero. Quote
Harley Posted April 13, 2009 Posted April 13, 2009 Re: Businesses Mod [Mccode V2] How did you fix it? Quote
Eruondo Posted April 15, 2009 Posted April 15, 2009 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. Quote
Eruondo Posted April 15, 2009 Posted April 15, 2009 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. Quote
Alien Posted April 19, 2009 Posted April 19, 2009 Re: Businesses Mod [Mccode V2] very very very nice mod i cant belive your giving it away for free Quote
Harley Posted April 19, 2009 Posted April 19, 2009 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. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.