Page 1 of 1

how to set correctly new scriptSettings ?

Posted: 19 Jul 2012, 19:03
by reaby

Code: Select all

$settings = $this->connection->getModeScriptSettings();

Array
(
    [MapPointsLimit] => 200
    [OffZoneTimeLimit] => 50
    [OffZoneActivationTime] => 4
    [SpawnInterval] => 5
)
value changed.

Array
(
    [MapPointsLimit] => 200
    [OffZoneTimeLimit] => 50
    [OffZoneActivationTime] => 4
    [SpawnInterval] => 3
)
$this->connection->setModeScriptSettings($settings);
Dedicated replies:
Non-struct type supplied for 'S' specifier

Re: how to set correctly new scriptSettings ?

Posted: 04 Aug 2012, 11:45
by kapsubm
getting the same error when i try to change scriptsettings

Code: Select all

sh-4.1$ ./sendcmd.php GetModeScriptSettings
*GetModeScriptSettings :
  Duration = 300000
  ShowTop10 = 1
sh-4.1$ ./sendcmd.php SetModeScriptSettings array Duration=500000 ShowTop10=1
array...
+>Duration=500000
+>ShowTop10=1
Cannot run SetModeScriptSettings - Error -501: Non-struct type supplied for 'S' specifier
sh-4.1$