Joshua Posted December 7, 2009 Author Posted December 7, 2009 ******edit********* manually run the cron and see if it is pitching an error as it's working on mine >,< ********* You are very welcome, again, let me know if you find any problems :) My goal is to get this bit working 100% then expand on it for the users of MWG. Mainly because w/o MWG I would still be staring at <?php ?> trying to figure out wth they meant >,< ************* As a side note to all the new members here at MWG, 6 months ago or so I couldnt so much as Install McCodes properly ....... But...Thanks to these forums....and a bit of persistance.....I'm well on my way to actuallying being a coder..... Why am i saying all this? Because you can to :D Little tips, If you have a problem...Save a back-up and play with it...try various differant things until you get it to work.....Sometimes you may suprise yourself then when you do get it to work..You've learned something. Baby steps =P If you have problems post here, always someone willing to help out, THANKS to-------MagicTallGuy, Zero-Affect,Danny696,DjKhanna,Sniko,MdShare,Karlos,Richard, and countless others for posting tips and tricks as they have helped me immensely. +1000. Quote
Joshua Posted December 7, 2009 Author Posted December 7, 2009 Woops, sorry Copy paste let me down and copied original, Page One Original Cron has been updated...AGAIN >,< Quote
jds137 Posted December 7, 2009 Posted December 7, 2009 For Business manage Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ']' in /home/church/ml/public/business_manage.php on line 188 Quote
Joshua Posted December 7, 2009 Author Posted December 7, 2009 Sounds like you didnt copy/paste correctly. There are 2 pages to copy/paste make sure you copy them in order =P Quote
Joshua Posted December 7, 2009 Author Posted December 7, 2009 Whoops On Business Manage find $_POST['member'] = abs(@intval($_POST['member''])); change to $_POST['member'] = abs(@intval($_POST['member'])); Original Post updated. Quote
thedestroyer Posted December 7, 2009 Posted December 7, 2009 the company director still does not gain any stats or company points Quote
Joshua Posted December 7, 2009 Author Posted December 7, 2009 Did you use the original one from the first page? Because I copy/pasted that directly from mine and ran it and it worked just fine... Quote
Joshua Posted December 7, 2009 Author Posted December 7, 2009 Also, the Business Director doesnt get company points He gets stats and money in the vault. mysql_query(sprintf("UPDATE `userstats` SET `labour` = `labour` + '50', `IQ` = `IQ` + '50', `strength` = `strength` + '50' WHERE (`userid` = '%u')", $bs['busDirector'])); that's the query for it nothin wrong with it... Quote
Joshua Posted December 7, 2009 Author Posted December 7, 2009 Although I'm 99.9% sure this cron is identical to the one on the first page..this is the one running on my game and working 100% You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
thedestroyer Posted December 7, 2009 Posted December 7, 2009 I used this to make it so the director gains company points but he gets 3 a day instead of one wtf You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
Joshua Posted December 7, 2009 Author Posted December 7, 2009 Crap, again..found another bug though I dno why it's working on my site >,< Find in Business_cron in the arrays do a page search for endurance change any instance of endurance to strength Quote
Joshua Posted December 8, 2009 Author Posted December 8, 2009 add me, i am curious why this isnt working right for you :\ [email protected] it may have something to do with the endurance instance bugging the cron but I just corrected that updating original post now Quote
thedestroyer Posted December 8, 2009 Posted December 8, 2009 maybe im adding it in the wrong place added it here You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
Joshua Posted December 8, 2009 Author Posted December 8, 2009 Strange I havent gotten an Invite yet. Upon further investigation i'm getting x's 4 on stats and comppoints, so i'm going to try and figure out what's making it do that as it doesnt make sense off hand >,< Quote
Joshua Posted December 8, 2009 Author Posted December 8, 2009 I can't for the life of me figure it out atm, It's sudo late tho.... For some reason it is Doubleing the cron I reduced the stat raise for the director and it's doubling it on the cron loop so 25 in each stat becomes 200..it's taking all the stats and adding them together when it shouldnt. Stupid crons >,< Quote
Joshua Posted December 8, 2009 Author Posted December 8, 2009 Ok, If any of the pro's could take a look at this I beleive the problem is in here somewhere >,< You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. But I for the life of me can't see it. It's Not Updating company ranks properly, and the business Director is getting Double the Stats. If no one figures it out i'll hit it up in the a.m :\ Quote
Djkanna Posted December 8, 2009 Posted December 8, 2009 Sheesh Mr Immortalthug, you've mentioned my name twice in previous post and still didn't get it right :P no (h) ;) xD I'm no pro but I'll take a look at it sometime in the morning (I is far too tired LOL) :P Quote
thedestroyer Posted December 8, 2009 Posted December 8, 2009 dam right open up business_manage.php and find: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. add this underneath You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. gives the user an event if they get accepted i will ad one for declined later as dont have the time right now. Immortal i wil do my best to add some small but effective codes to help im not that good at coding but i will try my best :) Quote
SHAD Posted December 8, 2009 Posted December 8, 2009 Immortalthug thank you very much for fixing this mod mate i really enjoy it . and also could it be possible if these were added when the business gets bankcrupt the employee's get a event that the bussiness is bankcrupt and they have been kicked out. when an application get accepted then the employee's should get an event saying they got accepted in the job when the director kicks the employee then he should get an event saying he has been kicked from his job Thank you very mch Quote
Joshua Posted December 8, 2009 Author Posted December 8, 2009 Thanks Shad, and you're welcome. When I get this cron bit fixed "if and when" I'll go ahead and add the events :P Oh and DjKanna there better :O Quote
Joshua Posted December 8, 2009 Author Posted December 8, 2009 Ok, It only took me half the day >,< But I managed to fix the Crons. Now everything is updating as it should You will need to do the following Open up PHPMYADMIN and Drop the table Businessess_ranks ( unless you want to manually go through and change everything ) Then install This Businessess_ranks table You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. After that, Overwrite your Old business_cron with this one You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. 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.