Is there any possible way to make this work with Promodlive v2.1.1? Eliminating the GSC check or something? Ideas?
Beiträge von umadbroDR
-
-
Funkzioniert jetzt. Vielen dank
-
Ja habs getan:
Zitat][24.02.13 21:45:35] PHP-Error: Notice in cod4/server/adminmod_sd/plugins/banip.php:164 => Undefined offset: 0
[24-Feb-2013 21:45:35] PHP Fatal error: Call to a member function isProtected() on a non-object in /cod4/server/adminmod_sd/plugins/banip.php on line 164 -
Gibt den selben fehler
-
Hallo, ich versuche zu machen das !banip nicht die beschutzen admins kickt, ich habe folgendes getan:
PHP
Alles anzeigenpublic function commandBanIp($kickerGuid, $parameters, $player) { global $mod, $players, $guid, $player; if ($mod->getCV("banip", "enabled") != 1) { return; } $this->cleanup(); if (count($parameters) < 1) { $players[$kickerGuid]->say("Koristenje: ^3!banip igrac [reason] ^2IME IGRACA MORA BITI JEDNA RIJEC!"); return false; } /**DEFINING PLAYER BY GUID*/ $player = $parameters[0]; $playerToBan = $mod->findPlayerGuid($player); /**CHECKING IF PROTECTED*/ if ($players[$playerToBan]->isProtected(1)){ $players[$kickerGuid]->say("Ma sredio mad da ^3ne mozes banat IP protectanog igraca ^2<3"); return false; } $playerToBan = $parameters[0]; if (count($parameters) == 2) { $reason = false; } else { $reason = ""; for ($n = 1; $n < count($parameters); $n++) { $reason .= $parameters[$n] . " "; } } $this->banIpAndKick($kickerGuid, $playerToBan, 0, trim($reason)); }
und das gibt mir dieses fehler wenn ich
benutze:
Zitat
[24.02.13 20:59:39] PHP-Error: Warning in cod4/server/adminmod_sd/plugins/banip.php:146 => Missing argument 3 for banIp::commandBanIp(), called in /cod4/server/adminmod_sd/classes/mod.class.php on line 1071 and defined
[24.02.13 20:59:39] PHP-Error: Notice in cod4/server/adminmod_sd/plugins/banip.php:165 => Undefined offset: 0
[24-Feb-2013 20:59:39] PHP Fatal error: Call to a member function isProtected() on a non-object in /cod4/server/adminmod_sd/plugins/banip.php on line 165
Line 165 = Line 20 in diesen post
Line 146 = Line 1 in diesen postIdeen? :question:
-
Thanks for the input but I have found the solution and what was causing the problem. The server was running out of RAM so as soon as I have shut down some unnecessary services everything went back to normal.
-
'ello,
I am running a CoD4 server with MAM on a CentOS 6 server and every now and then, manuadminmod will crash and write this in the logfile:
Code
Alles anzeigen107:31 [20.01.13 21:14:07] PHP-Error: Notice in /adminmod/classes/mod.class.php:803 => Undefined offset: 11 107:31 [20.01.13 21:14:07] PHP-Error: Notice in /adminmod/classes/mod.class.php:803 => Undefined offset: 10 107:31 [20.01.13 21:14:07] PHP-Error: Notice in /adminmod/classes/mod.class.php:803 => Undefined offset: 9 107:31 [20.01.13 21:14:07] PHP-Error: Notice in /adminmod/classes/mod.class.php:803 => Undefined offset: 8 107:31 [20.01.13 21:14:07] PHP-Error: Notice in /adminmod/classes/mod.class.php:803 => Undefined offset: 7 107:31 [20.01.13 21:14:07] PHP-Error: Notice in /adminmod/classes/mod.class.php:803 => Undefined offset: 6 107:31 [20.01.13 21:14:07] PHP-Error: Notice in /adminmod/classes/mod.class.php:803 => Undefined offset: 5 107:31 [20.01.13 21:14:07] PHP-Error: Notice in /adminmod/classes/mod.class.php:803 => Undefined offset: 4 107:31 [20.01.13 21:14:07] PHP-Error: Notice in /adminmod/classes/mod.class.php:803 => Undefined offset: 4 107:31 [20.01.13 21:14:07] PHP-Error: Notice in /adminmod/classes/mod.class.php:803 => Undefined offset: 3 107:31 [20.01.13 21:14:07] PHP-Error: Notice in /adminmod/classes/mod.class.php:803 => Undefined offset: 2 107:31 [20.01.13 21:14:07] PHP-Error: Notice in /adminmod/classes/mod.class.php:803 => Undefined offset: 1 107:31 [20.01.13 21:14:07] Notice: Player XXX PID was changed from 0 to , GUID: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 107:31 [20.01.13 21:14:07] PHP-Error: Notice in /adminmod/classes/mod.class.php:825 => Undefined index: [20-Jan-2013 21:14:07] PHP Fatal error: Call to a member function update() on a non-object in XXX/adminmod/classes/mod.class.php on line 825
Line 803 of mod.class.php:
PHPlist($victim_guid, $victim_pid, $victim_team, $victim_name, $killer_guid, $killer_pid, $killer_team, $killer_name, $weapon, $damage, $image, $bodypart) = $parts;
Line 825 of mod.class.php:
which is a part of this "if" stack:PHPif ($killer_pid != -1) { $this->players[$killer_guid]->update($killer_pid, $killer_name); if (!in_array($this->getGame(), $noteamupdate)) { $this->players[$killer_guid]->setTeam($killer_team); } }
which is a part of the actionKill ($parts) public function.I am clueless :confused: