Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (InStr(A_LoopReadLine, ", SMS:"))
- Addchatmessage("{66FFFF}Organizer: SMS Empfangen!")
- {
- if(InStr(A_LoopReadLine, ", Sender:")
- {
- RegExMatch(A_LoopReadLine, "SMS:(.*), Sender: (.*) \((.*)\)" ,lastsms)
- FileAppend, `n%lastsms%,smslog.txt
- }else{
- newchatindex := A_Index+2
- FileReadLine, NewReadLine, %A_MyDocuments%\GTA San Andreas User Files\SAMP\chatlog.txt, newchatindex
- smsstring := ""
- RegExMatch(A_LoopReadLine, "SMS:(.*)" ,lastsms)
- smsstring .= lastsms
- RegExMatch(NewReadLine, "\](.*), Sender: (.*) \((.*)\)" ,lastsms)
- smsstring .= lastsms
- FileAppend, `n%smsstring%,smslog.txt
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement