undef.de wrote: ↑31 May 2017, 18:44
endbase wrote: ↑31 May 2017, 07:36

I'm no hero at php scriting but if you could correct it pls that would be nice
Fixed. Good catch... I must be tired while writing this.
Code: Select all
public function getPlayerData ($player, $key) {
if (isset($player) && is_object($player) && $player instanceof Player && !empty($key) && isset($player->data[$this->getClassname()][$key])) {
return $player->data[$this->getClassname()][$key];
}
}
So what should the public function look like? It is not working for me running the latest source from github (which i assume should fix the problem) as it is mentioned in the changelog. Replacing entire function with above is working. Did you forget to commit this or am i missing something? 
A small note while I am writing: private function logDebugInformations () in uaseco.php does not have a gd variable. Running with debug log will give following error: [PHP Notice] Undefined variable: gd on line 710 in file /xxxx/xxxx/xxxx/uaseco/uaseco.php. Fix would probably be to add the line $gd = gd_info(); at line 660.
Edit: Human error. I was using an old version of playerlist.class.php

Have tried to use strikethrough to mark the lines, but it seems strikethrouh is not supported on this forum. So i used underline instead. Hope it makes sense
