Code: Select all
return if (existsInList($config{playerRecorder_notPlayers}, $targetName));
return if (existsInList($config{playerRecorder_notInMap}, $map));
Code: Select all
Undefined subroutine &playerRecord::existsInList called at C:/Users/xxx/Desktop/openkore_ready/plugins/playerRecorder/macro.pl line 56.
Code: Select all
if (existsInList($config{playerRecorder_notInMap}, $field)) {
return;
So currently I'm using the following version:
Code: Select all
my @notPlayers = ("x", "xxx", "xxx");
for (@notPlayers) {
if ($targetName eq $_) {
return;
}
}
For the map I still couldn't get the variable from the "cities.txt" to work, which you were talking about at last.
I put this at the beginning:
And out of this:use Globals qw(%cities_lut);
Code: Select all
my @notInMap = ("prontera", "geffen", "alberta", "morocc");
for (@notInMap) {
if ($field->baseName eq $_) {
return;
}
}
Code: Select all
my @notInMap = (existsInList($cities));
for (@notInMap) {
if ($field->baseName eq $_) {
return;
}
}