• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Solved error creating characters (gesior)

crashwan

New Member
Joined
Oct 6, 2012
Messages
53
Reaction score
0
Please, anyone who can help me!

Code:
Fatal error: Uncaught exception 'E_OTS_NotLoaded' in C:\xampp\htdocs\pot\OTS_Player.php:1786 Stack trace: #0 C:\xampp\htdocs\accountmanagement.php(803): OTS_Player->getSkill(0) #1 C:\xampp\htdocs\index.php(153): include('C:\xampp\htdocs...') #2 {main} thrown in C:\xampp\htdocs\pot\OTS_Player.php on line 1786
 
Find this
PHP:
public function getSkill($skill)
    {
        if( !isset($this->skills[$skill]) )
        {
            throw new E_OTS_NotLoaded();
        }


        return $this->skills[$skill]['value'];
    }

Replace with
PHP:
public function getSkill($skill)
    {
        if( !isset($this->skills[$skill]) )
        {
            return NULL;;
        }


        return $this->skills[$skill]['value'];
    }
 
Back
Top