• 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!

acc maker unexpected ,

kapka

New Member
Joined
Aug 3, 2012
Messages
58
Reaction score
0
Hi, i have some problem when i want to in My account at my accmaker, there is Parse error: syntax error, unexpected ',' in C:\xampp\htdocs\classes\account.php on line 206.
i dont know what to do with this. 206 line at account.php:
Code:
    public function getPremDays(){return $this->data['premdays'] - (("z", time()) + (365 * (("Y", time()) ("Y", $this->data['lastday']))) ("z", $this->data['lastday']));}
 
Try replacing it with this:
Code:
        return $this->data['premdays'] - (date("z", time()) + (365 * (date("Y", time()) - date("Y", $this->data['lastday']))) - date("z", $this->data['lastday']));
\
Or the whole code.
Code:
 public function getPremDays()
    {
        if( !isset($this->data['premdays']) || !isset($this->data['lastday']) )
        {
            throw new E_OTS_NotLoaded();
        }

        return $this->data['premdays'] - (date("z", time()) + (365 * (date("Y", time()) - date("Y", $this->data['lastday']))) - date("z", $this->data['lastday']));
    }
 
Back
Top