the one i posted works...
:|
the one i posted works...
:|
Coming and going...
Highers are getting the better of me
Didn't see yours..
Looking for a good desiner to design a social networking template.
PM me.
Ok, to edit it, do this: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(1, 100);
$points['level']['2'] = sort_level(101, 200);
$points['level']['3'] = sort_level(201, 300);
$points['level']['4'] = sort_level(301, 400);
// DO NOT EDIT
for( $i = 0; $i < count($points['level']); $i++ )
{
if( $points['level'][$i] == "true" )
{
echo "Level " . $i;
}
}
?>
PHP Code:$points['level']['LEVEL IN HERE'] = sort_level(MIN POINTS TO GET LEVEL, MAX POINTS TO GET LEVEL);
where does the $points variable come from?Ok, to edit it, do this: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(1, 100);
$points['level']['2'] = sort_level(101, 200);
$points['level']['3'] = sort_level(201, 300);
$points['level']['4'] = sort_level(301, 400);
// DO NOT EDIT
for( $i = 0; $i < count($points['level']); $i++ )
{
if( $points['level'][$i] == "true" )
{
echo "Level " . $i;
}
}
?>
PHP Code:$points['level']['LEVEL IN HERE'] = sort_level(MIN POINTS TO GET LEVEL, MAX POINTS TO GET LEVEL);
Looking for a good desiner to design a social networking template.
PM me.
Do you actually know php?
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.
the $points variable is created to store the results of the function..
Coming and going...
Highers are getting the better of me
Want to hide these adverts? Register an account for free!