Jump to content
MakeWebGames

Recommended Posts

Posted

If this is based off of McCodes, then doesn't the criminal table in the database have the formula already in there? Then all you would have to do is $rate = formula with the level being $ir['level'] and just replacing the necessary variables. Hard to say, as I don't know what you are using as your formula.

Posted
echo your formula...

You need to select crimePERCFORM in a query then echo that field...

That field is in the crimes table..

if i echo crimePERCFORM fields its shown like ((WILL*5)/2)+(LEVEL/2)

Also every single formula is different.. For example 1.Crime's formula ; ((WILL*7)/3)+(LEVEL/2) 2.Crime's formula ((WILL*4)/2)+(LEVEL/3) bla bla bla...

Posted (edited)

There is a way of doing it, maybe add them like

$crime1=$ir['will']*5/2+$ir['level']/2;

$crime 2=crime2 formula...

and so on...

then echo them llike echo ' '.$crime1.' '; put them by the corresponding crime that they go to...it should calculate it for you the math and echo the outcome.

Edited by lucky3809

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