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

WebSite [Guilds and Characters]

daniel9878

New Member
Joined
Dec 26, 2007
Messages
37
Reaction score
1
Hi guys im with two problems on my website...

First Problem:
When a player create or edit anything or anyone in a guild, if the edited one isnt offline the effects dont work, the player logout and log in and nothing.... So i would like to get this solved or to edit anything in a guild the edited one need to be offline...
Second Problem:
When I search some wrong name on my Characters page it appear this error:
Fatal error: Uncaught exception 'E_OTS_NotLoaded' in C:\xampp\htdocs\pot\OTS_Player.php:1808 Stack trace: #0 C:\xampp\htdocs\characters.php(181): OTS_Player->getCustomField('show_eq') #1 C:\xampp\htdocs\index.php(129): include('C:\xampp\htdocs...') #2 {main} thrown in C:\xampp\htdocs\pot\OTS_Player.php on line 1808

Thank you all =)
 
About the first problem, theres nothing wrong with it. You can't edit a character that is online, cause the server will overwrite the character data when he logout. So, you must edit your site and make a warning like: "You cant edit your character while it's online".
 
In other forum someone told me this:
$pot_player = new OTS_Player();
$my_acc_id = $pot_playerr->getCustomField('id');
$status = $SQL->query('SELECT * FROM '.$SQL->tableName('players').' WHERE id = '.$my_acc_id.';')->fetch();
if($status['online'] == '0') {
CODE OF THE SCRIPT
}

But i didnt understood, someone can help me?
 
Back
Top