Jump to content

frozenmafia

New Members
  • Posts

    7
  • Joined

  • Last visited

    Never

Contact Methods

  • Website URL
    http://www.frozenmafia.co.cc

Profile Information

  • Gender
    Not Telling

frozenmafia's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. post your login.php please.
  2. ok [attachment deleted by admin]
  3. in that case, no it isn't other than username been declared BEFORE the function and it works everywhere else.
  4. yeah it is in a classes.php where everything works off. It works everywhere else in the code
  5. Thanks pal but now I get: Fatal error: Using $this when not in object context in /home/frozen01/public_html/classeswgradients.php on line 777. 776 /*** a line of text ***/ 777 $text = $this->username;
  6. Thanks pal but now I get: Fatal error: Using $this when not in object context in /home/frozen01/public_html/classeswgradients.php on line 777. see above for code. 776 /*** a line of text ***/ 777 $text = $this->username;
  7. Ok so I am coding a game from a GRPG framework. And I get this error: Fatal error: Cannot redeclare gradient() (previously declared in /home/frozen01/public_html/classeswgradients.php:759) in /home/frozen01/public_html/classeswgradients.php on line 759. Here is line 759 with the surrounding lines. $hexresult = mysql_query("SELECT * FROM `grpgusers` WHERE id='".$this->id."'") or die(mysql_error()); $hex = mysql_fetch_array($hexresult); if ($hex['hexname'] == 1){ $result = mysql_query("SELECT * FROM `grpgusers` WHERE id='".$this->id."'"); $worked = mysql_fetch_array($result); function gradient($text){ /*** initialize the return string ***/ $ret = ''; /*** an array of colors ***/ $colors = array( $worked['hex1'], $worked['hex2'], $worked['hex3'] ); /*** a counter ***/ $i = 0; /*** get the length of the text ***/ $textlength = strlen($text); /*** a line of text ***/ $text = $this->username; /*** loop over the text ***/ while($i<=$textlength) { /*** loop through the colors ***/ foreach($colors as $value) { if ($text[$i] != "") { $ret .= '<span style="color:#'.$value.';">'.$this->$username[$i]."</span>"; } $i++; } } /*** return the highlighted string ***/ return $ret; } }
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.