Jump to content
MakeWebGames

Richards Business Mod--Fixed With a few Things added.


Recommended Posts

Posted

******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.

  • Replies 166
  • Created
  • Last Reply

Top Posters In This Topic

Posted

Whoops

On Business Manage find

$_POST['member'] = abs(@intval($_POST['member'']));

change to

$_POST['member'] = abs(@intval($_POST['member']));

Original Post updated.

Posted

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...

Posted

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.

Posted

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

Posted

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 >,<

Posted

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 >,<

Posted

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 :\

Posted

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

Posted

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 :)

Posted

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

Posted

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.

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...