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

[PHP] GESIOR ACC - Functions - Characters.php

Gabriel Tibiano

New Member
Joined
Nov 21, 2009
Messages
420
Reaction score
4
Hello,
i've tried to use some getCustomField but there's no field on accounts or players that give me the GUILD_NAME of player
I want to put it on characters.php and account management(near character name)

i just want the function or any explain about that, could anyone do that? thank you
i've tried gesior's characters.php functions but i'm getting error
Code:
Fatal error: Uncaught exception 'E_OTS_NotLoaded' in C:\xampp\htdocs\pot\OTS_GuildRank.php:179 Stack trace: #0 C:\xampp\htdocs\characters.php(209): OTS_GuildRank->getGuild() #1 C:\xampp\htdocs\index.php(244): include('C:\xampp\htdocs...') #2 {main} thrown in C:\xampp\htdocs\pot\OTS_GuildRank.php on line 179


gesior's function​
PHP:
              $rank_of_player = $player->getRank();
            if(!empty($rank_of_player))
            {
            {
            $guild_id = $rank_of_player->getGuild()->getId();
            $guild_name = $rank_of_player->getGuild()->getName();
                $main_content .= ''.$rank_of_player->getName().' of  the <a  href="?subtopic=guilds&action=show&guild='.$guild_id.'">'.$guild_name.'</a>';
            }
            }

 
Back
Top