Lista igraca sa servera

Pozz

Imam problema s ovom skriptom tj listanjem ili brojanjem igraca na serveru

evo file php i sve je u njemu http://pastebin.com/VD2tMNsa

kada stavim var_dump($server); izbaci mi komplet podatke o serveru

object(SERVERS)#1 (6)
{
[“maxlen”]=> int(2048)
[“write”]=> string(14) “˙˙˙˙getstatus”
[“s_info”]=> string(905) "˙˙˙˙statusResponse _Admin\Alfa_Location\Croatia\fs_game\jumperserver_sd11\g_antilag\1\g_gametype\sd\gamename\Call of Duty 2\mapname\mp_burgundy\protocol\118\scr_friendlyfire\0\scr_killcam\1\shortversion\1.3\sv_allowAnonymous\0\sv_floodProtect\1\sv_hostname^0(^5: ^3JUMPER^2BigJump^1SERVER ^3|^5SD^3| ^2Rifles ^3|^5&^3| ^5Scope ^3-^2-^1- ^5> ^2|^3toujane^2|^3burgundy^2| ^5:^0) ^7Axis ^5Score^2 : ^21 ^7Allies ^5Score^2 : ^21 ^7Rounds^2 : 2\sv_maxclients\30\sv_maxPing\250\sv_maxRate\25000\sv_minPing\0\sv_privateClients\0\sv_punkbuster\1\sv_pure\1\sv_voice\0\pswrd\0\mod\1 0 81 “[^9SAE^7]Jole^3^2*” 1 38 “^1Evil^2Weed^1Seed” 2 61 “^^00L!MA” 2 64 “^9^7rtc montare” 1 60 “^3JUMPER^2|^1OnYx_NeOn” 2 110 “Steven^3B^7I^4H” 4 86 “^1’^7myster^110^7us^1|^7Saiyan” 0 57 “buhin karlo” 1 36 “^9|M^20^9EB^21^9U^25|^9M^24^9X^” 4 68 “bora corba” 2 63 “^2Al^7bi^1sh” 0 999 “Joca” 0 56 “^2’^7myster^21o^7us^2|^73FEAR” "

[“g_info”]=> array(49)
{
[0]=> string(0) “” [1]=> string(6) “_Admin” [2]=> string(4) “Alfa”
[3]=> string(9) “_Location” [4]=> string(7) “Croatia”
[5]=> string(7) “fs_game” [6]=> string(17) “jumperserver_sd11”
[7]=> string(9) “g_antilag” [8]=> string(1) “1”
[9]=> string(10) “g_gametype” [10]=> string(2) “sd”
[11]=> string(8) “gamename” [12]=> string(14) “Call of Duty 2”
[13]=> string(7) “mapname” [14]=> string(11) “mp_burgundy”
[15]=> string(8) “protocol” [16]=> string(3) “118”
[17]=> string(16) “scr_friendlyfire” [18]=> string(1) “0”
[19]=> string(11) “scr_killcam” [20]=> string(1) “1”
[21]=> string(12) “shortversion” [22]=> string(3) “1.3”
[23]=> string(17) “sv_allowAnonymous” [24]=> string(1) “0”
[25]=> string(15) “sv_floodProtect” [26]=> string(1) “1”
[27]=> string(11) “sv_hostname” [28]=> string(183) “^0(^5: ^3JUMPER^2BigJump^1SERVER ^3|^5SD^3| ^2Rifles ^3|^5&^3| ^5Scope ^3-^2-^1- ^5> ^2|^3toujane^2|^3burgundy^2| ^5:^0) ^7Axis ^5Score^2 : ^21 ^7Allies ^5Score^2 : ^21 ^7Rounds^2 : 2”
[29]=> string(13) “sv_maxclients” [30]=> string(2) “30”
[31]=> string(10) “sv_maxPing” [32]=> string(3) “250”
[33]=> string(10) “sv_maxRate” [34]=> string(5) “25000”
[35]=> string(10) “sv_minPing” [36]=> string(1) “0”
[37]=> string(17) “sv_privateClients” [38]=> string(1) “0”
[39]=> string(13) “sv_punkbuster” [40]=> string(1) “1”
[41]=> string(7) “sv_pure” [42]=> string(1) “1”
[43]=> string(8) “sv_voice” [44]=> string(1) “0”
[45]=> string(5) “pswrd” [46]=> string(1) “0”
[47]=> string(3) “mod” [48]=> string(1) “1”
}

[“p_info”]=> array(14)
{
[0]=> string(25) “0 81 “[^9SAE^7]Jole^3^2*””
[1]=> string(25) “1 38 “^1Evil^2Weed^1Seed””
[2]=> string(15) “2 61 “^^00L!MA””
[3]=> string(22) “2 64 “^9^7rtc montare””
[4]=> string(29) “1 60 “^3JUMPER^2|^1OnYx_NeOn””
[5]=> string(23) “2 110 “Steven^3B^7I^4H””
[6]=> string(37) “4 86 “^1’^7myster^110^7us^1|^7Saiyan””
[7]=> string(18) “0 57 “buhin karlo””
[8]=> string(38) “1 36 “^9|M^20^9EB^21^9U^25|^9M^24^9X^””
[9]=> string(17) “4 68 “bora corba””
[10]=> string(19) “2 63 “^2Al^7bi^1sh””
[11]=> string(12) “0 999 “Joca””
[12]=> string(36) “0 56 “^2’^7myster^21o^7us^2|^73FEAR””
[13]=> string(0) “”
}

[“response”]=> int(46)

}

a kad hocu pristupit njima izbacuje error

Warning: Illegal string offset ‘p_info’ in C:\xampp\htdocs\test_server.php on line 111
˙

Notice: Undefined index: p_info in C:\xampp\htdocs\test_server.php on line 111

Dakle meni treba da mi pise kolko trenutno igraca ima na serveru ovo je max klijenata [29]=> string(13) “sv_maxclients” [30]=> string(2) “30” i ovo bi trebalo samo da izbroji [“p_info”] dakle da pise Players : 4/30


Copyright © 2020 WM Forum - AboutContact - Sponsored by: Mydataknox & Profit Monkey