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

Help Error Gesior

GODPaaulo

New Member
Joined
Jun 3, 2011
Messages
64
Reaction score
0
I am with the following error:

Code:
Fatal error: Call to undefined method OTS_Account::getPlayerVip_Time() in C:\xampp\htdocs\accountmanagement.php on line 28

VIP system that I use uses (viptime) not (vip_time) in my database have the column so viptime, and from what I saw this vip_time asking. where do I get to viptime?

rep+
 
you're missing a class function, the column has nothing to do with it

OTS_Account.php
PHP:
	public function getPlayerVip_Time()
	{
		if( !isset($this->data['viptime']) )
		{
			throw new E_OTS_NotLoaded();
		}

		return $this->data['viptime'];
	}
 
Thanks Cykotitan ! Rep+
Solved my problem partially
I found a tag like this, I remembered that I added, because the system vip!

Code:
public function getVipTime()
{
        if( !isset($this->data['viptime']) || !isset($this->data['lastday']) )
        {
                throw new E_OTS_NotLoaded();
        }

        return ceil(($this->data['viptime'] - time()) / (24*60*60));

I remove it or alter it so?

Until then enjoy another bug in the days of vip
image
imagempsdd.jpg

thanks for the help so far

hug
 
swap line 28 with
Code:
                $account_vip = $account_logged->getPlayerVipTime() ? '<b><font color="green"> Vip Account, '.round(($account_logged->getPlayerVipTime() - time()) / 86400).' Day(s) left </font></b>' : '<b><font color="red">Not Vip Account</font></b>';
 
hey man thank you, thank yourself.
solve it all my site problems.

Now I have one more question, do not know much about it, do not know if config is the client or the server again, when you enter the account does not appear the day vip here.

vipaccount.PNG

You know why?
hug
 
ok here's how to change but to show how many days have you play vip, aging is a free premium account?

bump

Cykotitan thanks for helping me there.
friendly hug
 
Last edited by a moderator:
Back
Top