Re: A program to save all chatlog in a single file, like s0b
Bawhwha i tried to use one damn sampfunc opcode so that the .log file doesnt get spammed but i failed.. the fucking opcode makes me crazy but anyways heres the spam version ..:
{$CLEO .cs}
THREAD "CHATLOG"
0662: NOP "www.youtube.com/OpcodeXe"
if
8AF7: get_samp_base_to 0@
then
0A93: end_custom_thread
end
repeat
wait 400
until 0AFA: is_samp_structures_available
0A9A: 31@ = openfile "CLEOChatLog.log" mode "at" // IF and SET
0AD9: write_formatted_text "%s%c" in_file 31@ " " 10
0AD9: write_formatted_text "%s%c" in_file 31@ " " 10
0AD9: write_formatted_text "%s%c" in_file 31@ " " 10
0AD9: write_formatted_text "%s%c" in_file 31@ " " 10
0AD9: write_formatted_text "%s%c" in_file 31@ "------ NEW LOGGING SESSTION STARTED ------" 10
0AD9: write_formatted_text "%s%c" in_file 31@ " " 10
0AD9: write_formatted_text "%s%c" in_file 31@ " " 10
0AD9: write_formatted_text "%s%c" in_file 31@ " " 10
0AD9: write_formatted_text "%s%c" in_file 31@ " " 10
WHILE TRUE
wait 0
0AB1: call @getChatEntryText 1 id 99 to 1@
0AD9: write_formatted_text "%s%c" in_file 31@ 1@ 10
END
:getChatEntryText
1@ = samp.Base()
1@ += 0x212A24 // SAMP_CHAT_INFO_OFFSET 03x
0A8D: 1@ = read_memory 1@ size 4 virtual_protect 0
1@ += 0x136
0@ *= 252 // size of stChatEntry
005A: 1@ += 0@ // (int)
1@ += 28
0AB2: ret 1 1@