Page 2 of 2 FirstFirst 12
Results 11 to 19 of 19

Thread: small help

  1. #11
    Join Date
    May 2006
    Posts
    1,797
    Tokens
    0

    Latest Awards:

    Default

    the one i posted works...

    :|
    Coming and going...
    Highers are getting the better of me

  2. #12
    Join Date
    Sep 2006
    Posts
    2,114
    Tokens
    0

    Latest Awards:

    Default

    Didn't see yours..
    Looking for a good desiner to design a social networking template.

    PM me.

  3. #13
    Join Date
    Dec 2006
    Location
    Swindon
    Posts
    3,299
    Tokens
    215
    Habbo
    dunko

    Latest Awards:

    Default

    PHP Code:
    <?php
    // DO NOT EDIT
    function sort_level$start$finish )
    {
        global 
    $op;
        if( 
    $op["points"] >= $start && $op["points"] <= $finish )
        {
            return 
    "true";
        } else
        {
            return 
    "false";
        }
    }
    // EDIT THIS BIT
    $points['level']['1'] = sort_level(1100);
    $points['level']['2'] = sort_level(101200);
    $points['level']['3'] = sort_level(201300);
    $points['level']['4'] = sort_level(301400);
    // DO NOT EDIT
    for( $i 0$i count($points['level']); $i++ )
    {
        if( 
    $points['level'][$i] == "true" )
        {
            echo 
    "Level " $i;
        }
    }
    ?>
    Ok, to edit it, do this:

    PHP Code:
    $points['level']['LEVEL IN HERE'] = sort_level(MIN POINTS TO GET LEVELMAX POINTS TO GET LEVEL); 

  4. #14
    Join Date
    Sep 2006
    Posts
    2,114
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Blob View Post
    PHP Code:
    <?php
    // DO NOT EDIT
    function sort_level$start$finish )
    {
        global 
    $op;
        if( 
    $op["points"] >= $start && $op["points"] <= $finish )
        {
            return 
    "true";
        } else
        {
            return 
    "false";
        }
    }
    // EDIT THIS BIT
    $points['level']['1'] = sort_level(1100);
    $points['level']['2'] = sort_level(101200);
    $points['level']['3'] = sort_level(201300);
    $points['level']['4'] = sort_level(301400);
    // DO NOT EDIT
    for( $i 0$i count($points['level']); $i++ )
    {
        if( 
    $points['level'][$i] == "true" )
        {
            echo 
    "Level " $i;
        }
    }
    ?>
    Ok, to edit it, do this:

    PHP Code:
    $points['level']['LEVEL IN HERE'] = sort_level(MIN POINTS TO GET LEVELMAX POINTS TO GET LEVEL); 
    where does the $points variable come from?
    Looking for a good desiner to design a social networking template.

    PM me.

  5. #15
    Join Date
    Dec 2006
    Location
    Swindon
    Posts
    3,299
    Tokens
    215
    Habbo
    dunko

    Latest Awards:

    Default

    Quote Originally Posted by Ini View Post
    where does the $points variable come from?
    No where...

  6. #16
    Join Date
    Sep 2006
    Posts
    2,114
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Blob View Post
    No where...
    So why are they there ...
    Looking for a good desiner to design a social networking template.

    PM me.

  7. #17
    Join Date
    Dec 2006
    Location
    Swindon
    Posts
    3,299
    Tokens
    215
    Habbo
    dunko

    Latest Awards:

    Default

    Do you actually know php?

  8. #18
    Join Date
    Sep 2006
    Posts
    2,114
    Tokens
    0

    Latest Awards:

    Default

    Yes..

    but i dont understand this function..

    Beucase it doesn't work for me and i cant understand why..?
    Looking for a good desiner to design a social networking template.

    PM me.

  9. #19
    Join Date
    May 2006
    Posts
    1,797
    Tokens
    0

    Latest Awards:

    Default

    the $points variable is created to store the results of the function..
    Coming and going...
    Highers are getting the better of me

Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •