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

Who is online [modern account]

Elexonic

Well-Known Member
Joined
Jun 18, 2008
Messages
1,920
Reaction score
59
Original code -
PHP:
$main_content .= '
        <TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%>
                <TR BGCOLOR="'.$config['site']['vdarkborder'].'">
                        <TD CLASS=white><B>Server Status</B></TD>
                </TR>
                <TR BGCOLOR='.$config['site']['darkborder'].'>
                        <TD>';
                                if($number_of_players_online == $config['status']['serverStatus_players'])
                                        $main_content .= 'Currently there are '.$number_of_players_online.' players is active';
                                else
                                        $main_content .= 'Currently there are '.$config['status']['serverStatus_players'].' active and '.($number_of_players_online - $config['status']['serverStatus_players']).' AFK players';
                        $main_content .= ' on '.$world_name.' gameworlds.<br>
                        </TD>
                </TR>
        </TABLE><BR>';

My code for modern account-
PHP:
echo '
        <TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%>
                <TR BGCOLOR="'.$config['site']['vdarkborder'].'">
                        <TD CLASS=white><B>Server Status</B></TD>
                </TR>
                <TR BGCOLOR='.$config['site']['darkborder'].'>
                        <TD>';
								
                                
                                        if($number_of_players_online == $config['status']['serverStatus_players'])
										
                                        echo 'Currently there are '.$number_of_players_online.' players is active';
                               
                                else
                                        echo 'Currently there are '.$config['status']['serverStatus_players'].' active and '.($number_of_players_online - $config['status']['serverStatus_players']).' AFK players';
                        echo ' on '.$world_name.' gameworlds.<br>
                        </TD>
                </TR>
        </TABLE><BR>';

Problem i think no have this line.. [ is for gesior..]
serverStatus_players and don`t work.
In my index for modern work whit this funcion
PHP:
{if $serverOnline[$id]}
{$serverPlayers[$id]}		<br />Players Online							{else}
										<span style="color: red;font-weight: bold;">Server Offline</span>
									{/if}

but I can not make it work.

I only see in my website this-
Currently there are players is active on gameworlds.

I need for example this..

Currently 28 players are Online - 18 are active and, 10 are AFK.
 
Back
Top