• Welcome to SnipeZilla. A sniping community since 2012: Team Fortress 2, Counter-Strike and Left 4 Dead servers, live stats, and plugin talk. Sign in with Steam or Google and you're in right away.
SnipeZilla Srcds Manager

TOOL SnipeZilla Srcds Manager 1.4.0

No permission to download
Hello! After long time i went back to this beautiful community at cringemas time :)
and now why i post it here:

I normally using the manager over my host apache2.4.9+php5.6.
But now i upgraded to php 7.1 and it seems not to work so well.. Is it compatible?
28771bf6b8a8440c9849e03f1bd3854b.png
 
Last edited:
It is(tested with 7), do you use php.ini?
And do you have any logs(errors, messages)?
 
Theese tests was made with PHP 7.1 and APACHE 2.4.9

Code:
PHP Notice:  Array to string conversion in web\php\games.php on line 85
PHP Fatal error:  Uncaught Error: Cannot use string offset as an array in web\php\games.php:88
Stack trace:
#0 web\php\config.php(32): require()
#1 web\php\status.php(34): require('SZ\\update\\web...')
#2 {main}
  thrown in web\php\games.php on line 88

So i looked for it and:
9c1f6b6482474308a0ff598e2add6150.png
there something worng...

EDIT1:
Heres my XML
Code:
<?xml version="1.0" encoding="UTF-8"?>
<config>
  <steamcmd>
    <steamcmddir>C:\steamcmd\steamcmd.exe</steamcmddir>
    <xcopy>true</xcopy>
    <email/>
  </steamcmd>
  <server appid="730">
    <installdir>C:\server\csgo-surf-1</installdir>
    <ip>X.X.X.X</ip>
    <port>27015</port>
    <fname>[1]CSGO-Surf-1</fname>
    <maxplayers>64</maxplayers>
    <cmd>-maxplayers_override 64 +exec autoexec.cfg +game_type 0 +game_mode 1 +tv_enable 1 -autoupdate -net_port_try 1</cmd>
    <rcon_say>sm_hsay</rcon_say>
  </server>
  <server appid="730">
    <installdir>C:\server\c-csgo-1</installdir>
    <ip>X.X.X.X</ip>
    <port>27016</port>
    <fname>[C1]CSGO-CUSTOM-1</fname>
    <map>de_dust2</map>
    <maxplayers>32</maxplayers>
    <cmd>-maxplayers_override 32 +map de_dust2 +exec autoexec.cfg +game_type 0 +game_mode 1 -usercon +sv_setsteamaccount XXXXXX -net_port_try 1 -autoupdate -tickrate 128</cmd>
    <rcon_say>sm_hsay</rcon_say>
  </server>
  <server appid="730">
    <installdir>C:\server\c-csgo-2</installdir>
    <ip>X.X.X.X</ip>
    <port>27018</port>
    <fname>[C2]CSGO-CUSTOM-2</fname>
    <maxplayers>32</maxplayers>
    <cmd>-maxplayers_override 32 +exec autoexec.cfg -usercon -autoupdate -tickrate 128 +exec autoexec.cfg +game_type 3 +game_mode 0 -net_port_try 1</cmd>
    <rcon_say>sm_hsay</rcon_say>
  </server>
</config>
EDIT2:
Now if i save it like this:
6344091340df46d0a9e794b067fe2f82.png

this code will output:
Code:
object(SimpleXMLElement)#13 (4) {
  ["@attributes"]=>
  array(1) {
    ["appid"]=>
    string(4) "4000"
  }
  ["name"]=>
  string(11) "Garry's Mod"
  ["game"]=>
  string(9) "garrysmod"
  ["server"]=>
  string(4) "4020"
}

object(SimpleXMLElement)#12 (4) {
  ["@attributes"]=>
  array(1) {
    ["appid"]=>
    string(3) "730"
  }
  ["name"]=>
  string(32) "Counter-Strike: Global Offensive"
  ["game"]=>
  string(4) "csgo"
  ["server"]=>
  string(3) "740"
}
... continues with games...
this is actually working !but!
The actually bad guy is here
9959f60a67814f63845966e8eea9647a.png

its on some way not working well.. its doing this:
f6c64875149d4d999d9873dc6c8531e7.png


With regards
 
Last edited:
Theese tests was made with PHP 7.1 and APACHE 2.4.9

Code:
PHP Notice:  Array to string conversion in web\php\games.php on line 85
PHP Fatal error:  Uncaught Error: Cannot use string offset as an array in web\php\games.php:88
Stack trace:
#0 web\php\config.php(32): require()
#1 web\php\status.php(34): require('SZ\\update\\web...')
#2 {main}
  thrown in web\php\games.php on line 88

So i looked for it and:
9c1f6b6482474308a0ff598e2add6150.png
there something worng...

EDIT1:
Heres my XML
Code:
<?xml version="1.0" encoding="UTF-8"?>
<config>
  <steamcmd>
    <steamcmddir>C:\steamcmd\steamcmd.exe</steamcmddir>
    <xcopy>true</xcopy>
    <email/>
  </steamcmd>
  <server appid="730">
    <installdir>C:\server\csgo-surf-1</installdir>
    <ip>X.X.X.X</ip>
    <port>27015</port>
    <fname>[1]CSGO-Surf-1</fname>
    <maxplayers>64</maxplayers>
    <cmd>-maxplayers_override 64 +exec autoexec.cfg +game_type 0 +game_mode 1 +tv_enable 1 -autoupdate -net_port_try 1</cmd>
    <rcon_say>sm_hsay</rcon_say>
  </server>
  <server appid="730">
    <installdir>C:\server\c-csgo-1</installdir>
    <ip>X.X.X.X</ip>
    <port>27016</port>
    <fname>[C1]CSGO-CUSTOM-1</fname>
    <map>de_dust2</map>
    <maxplayers>32</maxplayers>
    <cmd>-maxplayers_override 32 +map de_dust2 +exec autoexec.cfg +game_type 0 +game_mode 1 -usercon +sv_setsteamaccount XXXXXX -net_port_try 1 -autoupdate -tickrate 128</cmd>
    <rcon_say>sm_hsay</rcon_say>
  </server>
  <server appid="730">
    <installdir>C:\server\c-csgo-2</installdir>
    <ip>X.X.X.X</ip>
    <port>27018</port>
    <fname>[C2]CSGO-CUSTOM-2</fname>
    <maxplayers>32</maxplayers>
    <cmd>-maxplayers_override 32 +exec autoexec.cfg -usercon -autoupdate -tickrate 128 +exec autoexec.cfg +game_type 3 +game_mode 0 -net_port_try 1</cmd>
    <rcon_say>sm_hsay</rcon_say>
  </server>
</config>
EDIT2:
Now if i save it like this:
6344091340df46d0a9e794b067fe2f82.png

this code will output:
Code:
object(SimpleXMLElement)#13 (4) {
  ["@attributes"]=>
  array(1) {
    ["appid"]=>
    string(4) "4000"
  }
  ["name"]=>
  string(11) "Garry's Mod"
  ["game"]=>
  string(9) "garrysmod"
  ["server"]=>
  string(4) "4020"
}

object(SimpleXMLElement)#12 (4) {
  ["@attributes"]=>
  array(1) {
    ["appid"]=>
    string(3) "730"
  }
  ["name"]=>
  string(32) "Counter-Strike: Global Offensive"
  ["game"]=>
  string(4) "csgo"
  ["server"]=>
  string(3) "740"
}
... continues with games...
this is actually working !but!
The actually bad guy is here
9959f60a67814f63845966e8eea9647a.png

its on some way not working well.. its doing this:
f6c64875149d4d999d9873dc6c8531e7.png


With regards

http://stackoverflow.com/questions/35155128/array-to-string-conversion-exception-with-php-7
big difference from php5: no more string to array with php7.
 
Back
Top