hmm...got an error at step 9... (fixed)
Step 1 ... ok
Step 2 ... ok
Step 3 ... ok
Step 4 ... ok
Step 5 ... ok
Step 6 ... ok
Step 7 ... ok
Step 8 ... ok
Step 9 ... failed - ERR(1): Search string could not be found
Step 10 ... ok
Step 11 ... ok
Step 12 ... ok
Step 13 ... ok
> modifications failed! 1 errors occured. No files will be modified. Please see readme for help on the error
messages.
edit:
what i have:
fopen(LOG, "$vardir/log.txt");
my @online = <LOG>;
fclose(LOG);
fopen(LOG, ">$vardir/log.txt", 1);
print LOG "$field|$date\n";
foreach $curentry (@online) {
$curentry =~ s/\n//g;
($name, $date1) = split(/\|/, $curentry);
$date2 = $date;
chomp $date1;
chomp $date2;
&calctime;
if($name ne $field && $result <= $OnlineLogTime && $result >= 0 && $name ne $user_ip) { print LOG "$curentry\n"; }
if(-e "$memberdir/$name.dat" && $result > $OnlineLogTime) {&WriteLastOnline($name, $date, "x", "x");}
}
fclose(LOG);
what it wants:
fopen(LOG, "$vardir/log.txt");
my @online = <LOG>;
fclose(LOG);
fopen(LOG, ">$vardir/log.txt", 1);
print LOG "$field|$date\n";
foreach $curentry (@online) {
$curentry =~ s/\n//g;
($name, $date1) = split(/\|/, $curentry);
$date2 = $date;
chomp $date1;
chomp $date2;
&calctime;
if($name ne $field && $result <= 15 && $result >= 0 && $name ne $user_ip) { print LOG "$curentry\n"; }
}
fclose(LOG);
what do i change in the replace part to get it to work?
edit2: nevermind i found it, one of the mods i have installed added this line:
if(-e "$memberdir/$name.dat" && $result > $OnlineLogTime) {&WriteLastOnline($name, $date, "x", "x");}
so i just added it to the search and replace part of the mod file and it works fine now...
i'll just leave all the above stuff there incase someone has the same problem...