Title: Array on Source servers?
Last modified: March 13, 2018

---

# Array on Source servers?

 *  Resolved [flexdope](https://wordpress.org/support/users/flexdope/)
 * (@flexdope)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/array-on-source-servers/)
 * Hello guys,
    I am using plugin Game Server Status and everything works fine (
   except showing players) on Counter-Strike (source mode) servers.
 * When I add server and then display with short code, it displays everything including
   online status, but on online players/max players I have column Array/Array.
 * I am using PHP version 5.6 and before 7.1 and also not work. So I don’t know,
   where is the problem.
 * Sorry for my pretty bad english, I hope, you understand what I try to explain
   you.
    Thank you and have a nice day!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Farray-on-source-servers%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Thread Starter [flexdope](https://wordpress.org/support/users/flexdope/)
 * (@flexdope)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/array-on-source-servers/#post-10087697)
 * Okey I find the solution.
 * You need delete line 54 in file shortcodes.php and put there:
 *     ```
       $online_players = '';
       $maximum_players = '';
   
       is_array( $server_info['general']['online_players'] ) ? $online_players = $server_info['general']['online_players']['value'] : $online_players = $server_info['general']['online_players'];
   
       is_array( $server_info['general']['maximum_online_players'] ) ? $maximum_players = $server_info['general']['maximum_online_players']['value'] : $maximum_players = $server_info['general']['maximum_online_players'];
   
       $content .= '<strong>' . __('Players:', 'game-server-status') . '</strong> ' . $online_players . '/' . $maximum_players . '<br />';
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Array on Source servers?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/game-server-status_ffffff.svg)
 * [Game Server Status](https://wordpress.org/plugins/game-server-status/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/game-server-status/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/game-server-status/)
 * [Active Topics](https://wordpress.org/support/plugin/game-server-status/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/game-server-status/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/game-server-status/reviews/)

## Tags

 * [online](https://wordpress.org/support/topic-tag/online/)
 * [players](https://wordpress.org/support/topic-tag/players/)
 * [problem](https://wordpress.org/support/topic-tag/problem/)
 * [status](https://wordpress.org/support/topic-tag/status/)

 * 1 reply
 * 1 participant
 * Last reply from: [flexdope](https://wordpress.org/support/users/flexdope/)
 * Last activity: [8 years, 2 months ago](https://wordpress.org/support/topic/array-on-source-servers/#post-10087697)
 * Status: resolved