1. TOURNAMENT SERVERS

    darwin.snipezilla.com:27015(74.91.122.168:27015)
    darwin.snipezilla.com:27016(74.91.122.168:27016)
    Command: !sz, !menu

TOOL SnipeZilla Srcds Manager 0.14.16

Srcds Manager for Windows. Update and Monitor multiple instance of srcds game server.

  1. Mr.Bombar

    Mr.Bombar New Member

    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?
    [​IMG]
     
    Last edited: Dec 25, 2016
  2. cedde

    cedde Snipin's a good job, mate! Staff Member Admin.Sʐ SNIPEZILLA Sʐ Tournament -Sʐ-

    It is(tested with 7), do you use php.ini?
    And do you have any logs(errors, messages)?
     
  3. Mr.Bombar

    Mr.Bombar New Member

    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:
    [​IMG] 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:
    [​IMG]
    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
    [​IMG]
    its on some way not working well.. its doing this:
    [​IMG]

    With regards
     
    Last edited: Dec 25, 2016
  4. cedde

    cedde Snipin's a good job, mate! Staff Member Admin.Sʐ SNIPEZILLA Sʐ Tournament -Sʐ-

  5. cedde

    cedde Snipin's a good job, mate! Staff Member Admin.Sʐ SNIPEZILLA Sʐ Tournament -Sʐ-

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

Share This Page