hello i have a txt file wich are taken from a game log.
i tryed wth prematch but can’t seccessfuly.
i got on the txt file wich i want parse
[php]
27:16 D;011000018e4f1dc8;0;axis;Player1;01100001bfa8ff4c;1;allies;Player2;m4_fmj_mp;57;MOD_HEAD_SHOT;head
27:16 K;011000018e4f1dc8;0;axis;Player1;01100001bfa8ff4c;1;allies;Player2;m4_fmj_mp;57;MOD_HEAD_SHOT;head
27:45 D;011000018e4f1dc8;0;axis;Player1;01100001bfa8ff4c;1;allies;Player2;m4_fmj_mp;57;MOD_HEAD_SHOT;head
27:45 K;011000018e4f1dc8;0;axis;Player1;01100001bfa8ff4c;1;allies;Player2;m4_fmj_mp;57;MOD_HEAD_SHOT;head
[/php]
i want to ignore all words and and count the “K” string and “D” wich means K-Killed, D-Died.
i mean we have 2 players.
at first line:
27:16 D;011000018e4f1dc8;0;axis;Player1;01100001bfa8ff4c;1;allies;Player2;m4_fmj_mp;57;MOD_HEAD_SHOT;head
D(Died) - Player1 Died by Player2
secound line:
27:16 K;011000018e4f1dc8;0;axis;Player1;01100001bfa8ff4c;1;allies;Player2;m4_fmj_mp;57;MOD_HEAD_SHOT;head
K(Killed) - Player1 Killed Player2
at all i want just print totall Killes and deaths
like this Player1 - 2/2
Player name - Killes/Deaths.
thanks you very much.
also my php knowlage are not so good but i wish you can help me.
thank you for your time.