• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Powergamers - exp history error

flaxe

the one and only
Joined
Jun 12, 2009
Messages
336
Reaction score
2
Location
Sweden
Hey! I just tried to install Powergamers for 0.3+. Everything works fine except the Exp History. This error I get when I try to enter my Experience History:

Code:
Fatal error: Cannot redeclare coloured_value() (previously declared in D:\xampp\htdocs\exphist.php:4) in D:\xampp\htdocs\layouts\lay\layout.php on line 173


Below is how my 19 first rows from exphist looks like:

PHP:
<?PHP
$limit = 300;
$type = $_REQUEST['type'];
function coloured_value($valuein)
{
	$value2 = $valuein;
	while(strlen($value2) > 3)
	{
		$value .= '.'.substr($value2, -3, 3);
		$value2 = substr($value2, 0, strlen($value2)-3);
	}
	$value = $value2.$value;
	if($valuein > 0)
		return '<font color="green">+'.$value.'</font>';
	elseif($valuein < 0)
		return '<font color="red">'.$value.'</font>';
	else
		return '<font color="black">'.$value.'</font>';
}


Below is how my layout.php rows 159-173 looks like (this means the row 173 is just a '}':

PHP:
							{
								$value2 = $valuein;
								while(strlen($value2) > 3)
								{
									$value .= '.'.substr($value2, -3, 3);
									$value2 = substr($value2, 0, strlen($value2)-3);
								}
								$value = $value2.$value;
								if($valuein > 0)
									return '<font color="green">+'.$value.'</font>';
								elseif($valuein < 0)
									return '<font color="red">'.$value.'</font>';
								else
									return '<font color="black">'.$value.'</font>';
							}


Ofcourse rep+ if help! Thanks in advance!
 
Back
Top