Urgent help with 2 lines needed. $5 reward

Discussion in 'PHP' started by x0x, Jul 9, 2008.

  1. #1
    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);
    Code (markup):
    What I want is:

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

     $your_powerkills=round($powerkill);$your_steal=round($pmp[10]*.15)*3;
     $his_powerkills=round($powerkill2);$his_steal=round($pimp[14]*.15)*3;
    Code (markup):
    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 ;)
     
    x0x, Jul 9, 2008 IP
  2. jonimontana

    jonimontana Well-Known Member

    Messages:
    262
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    108
    #2
    i helped him =]
     
    jonimontana, Jul 9, 2008 IP
  3. serialCoder

    serialCoder Guest

    Best Answers:
    0
    #3
    oops, too late for me i guess :(:(
     
    serialCoder, Jul 9, 2008 IP
    8everything likes this.
  4. kmap

    kmap Well-Known Member

    Messages:
    2,215
    Likes Received:
    29
    Best Answers:
    2
    Trophy Points:
    135
    #4
    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);
    }
     
    kmap, Jul 9, 2008 IP