Search found 7 matches
- Sat Nov 20, 2004 1:08 am
- Forum: PHP - Code
- Topic: return last accurance
- Replies: 14
- Views: 954
want to thank you for the help, got it working with very good results. now on server 1 i can inform players how many are playing on server 3 and vs ... by exec the new client log in the game script, only bug i have is that i can only exec once per map,,, once i exec or thread the file the game will ...
- Wed Nov 17, 2004 2:40 pm
- Forum: PHP - Code
- Topic: return last accurance
- Replies: 14
- Views: 954
- Wed Nov 17, 2004 2:19 am
- Forum: PHP - Code
- Topic: return last accurance
- Replies: 14
- Views: 954
here is a copy of what and how i'm doing. .bat file contains. C:/php/php.exe -q C:/==GAMES==/EA_GAMES/MOHAA/main/player.php <qconsole.log> clientss.log player.php <?php $lines = file('qconsole.log'); for ($i = count($lines); $i >= 0; $i--) { if (false !== strpos($lines[$i], 'level.clients')) { $matc...
- Tue Nov 16, 2004 3:55 pm
- Forum: PHP - Code
- Topic: return last accurance
- Replies: 14
- Views: 954
- Tue Nov 16, 2004 9:38 am
- Forum: PHP - Code
- Topic: return last accurance
- Replies: 14
- Views: 954
I'm sorry to be so stupid, but i have never written php before, basicly the first string i posted above took me two days to figure out. i got it to do almost what i wanted but it can get too big. the secound post in this string seems to be what i need but wont work, it looked like it wants to work ....
- Tue Nov 16, 2004 5:37 am
- Forum: PHP - Code
- Topic: return last accurance
- Replies: 14
- Views: 954
tried the above php and recieved the following error <br /> <b>Parse error</b>: parse error in <b>C:\==GAMES==\EA_GAMES\MOHAA\main\player.php</b> on line <b>6</b><br /> here is a snippet of the log and the line i need to capture. RE_RegisterModel: Registration failed for 'models/player/american_army...
- Tue Nov 16, 2004 1:51 am
- Forum: PHP - Code
- Topic: return last accurance
- Replies: 14
- Views: 954
return last accurance
Hi all, I am trying to make a script that will pull the last instance of a preg match off a game.log withen a game i have created a game-script that will dump a string on the game.log.. i can find it with the php below.. but of corse it returns the first to last match.. what i need is for it to prin...