Loan - Wordpress Themes - Nutritional Supplements - Online Schooling - Valentine's Day Gifts

PDA

View Full Version : Urgent help with 2 lines needed. $5 reward


x0x
Jul 9th 2008, 11:36 am
I've got those lines in my file.

$your_powerkills=round($powerkill);$your_steal=round($pmp[10]*.15);
$his_powerkills=round($powerkill2);$his_steal=round($pimp[14]*.15);

What I want is:

if($game_info['roundstyle'] == small)
THEN

$your_powerkills=round($powerkill);$your_steal=round($pmp[10]*.15)*3;
$his_powerkills=round($powerkill2);$his_steal=round($pimp[14]*.15)*3;

Will be used (notice I added *3 in the end)

BUT if roundstyle is not smallthen the lines without *3 will work as normal..

So if the roundstyle == smallthen it will use the lines with *3 and if not it will use without them.

Please help me quickly.

I'll send you $5 on paypal if you get it correct for me ;)

jonimontana
Jul 9th 2008, 11:39 am
i helped him =]

serialCoder
Jul 9th 2008, 11:40 am
oops, too late for me i guess :(:(

kmap
Jul 9th 2008, 11:52 am
if($game_info['roundstyle'] == "small")
{
$your_powerkills=round($powerkill);$your_steal=round($pmp[10]*.15)*3;
$his_powerkills=round($powerkill2);$his_steal=round($pimp[14]*.15)*3;
}
else
{
$your_powerkills=round($powerkill);$your_steal=round($pmp[10]*.15);
$his_powerkills=round($powerkill2);$his_steal=round($pimp[14]*.15);
}