Jump to content
MakeWebGames

Recommended Posts

Posted

Ok, so I currently have a race mod installed where when users register they have to select a race 1,2 or 3.

 

When the user goes to the Gym, the ['race'] defined, gets a Bonus work-out in 1 stat. race 1 - guard, race 2- agility race 3 - strength.

 

My problem is, even if i up the multiplier for the raxe *10000

 

I still can't tell any differance than the stat supposed to have the multiplier or one that doesnt.

Here's the code added in, is there anything wrong with it? Can you tell?

 

if ($ir['race']==1 AND $stat=="guard")
{
$inc=$ir[$stat]+$gain*1.1;
}
elseif ($ir['race']==2 AND $stat=="agility")
{
$inc=$ir[$stat]+$gain*1.1;
}
elseif ($ir['race']==3 AND $stat=="strength")
{
$inc=$ir[$stat]+$gain*1.1;
}
else
{
$inc=$ir[$stat]+$gain;
}

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