Finexes
Well-known member
Hello guys,
I am using GameQ to query my gameservers. I passed the results as variable to my template and could successfully display the servername, IP, etc.
Now I would like to display the players connected to each server, but it is passed as a multidimensional array.
Example:
Is it possible with <xf:foreach> to display the players per server?
I am using GameQ to query my gameservers. I passed the results as variable to my template and could successfully display the servername, IP, etc.
Now I would like to display the players connected to each server, but it is passed as a multidimensional array.
Example:
Code:
array [
"ts3" => array [
"players" => array [
0 => array [
"gq_name" => "Player 1"
]
1 => array [
"gq_name" => "Player 2"
]
]
]
"cod4" => array [
"players" => array [
0 => array [
"gq_name" => "Player 1"
]
1 => array [
"gq_name" => "Player 2"
]
]
]
"ins" => array [
"players" => array [
0 => array [
"gq_name" => "Player 1"
]
1 => array [
"gq_name" => "Player 2"
]
]
]
]
Is it possible with <xf:foreach> to display the players per server?