Advertisement
Guest User

Untitled

a guest
Jan 20th, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if (InStr(A_LoopReadLine, ", SMS:"))
  2. Addchatmessage("{66FFFF}Organizer: SMS Empfangen!")
  3. {
  4. if(InStr(A_LoopReadLine, ", Sender:")
  5. {
  6. RegExMatch(A_LoopReadLine, "SMS:(.*), Sender: (.*) \((.*)\)" ,lastsms)
  7. FileAppend, `n%lastsms%,smslog.txt
  8. }else{
  9. newchatindex := A_Index+2
  10. FileReadLine, NewReadLine, %A_MyDocuments%\GTA San Andreas User Files\SAMP\chatlog.txt, newchatindex
  11. smsstring := ""
  12. RegExMatch(A_LoopReadLine, "SMS:(.*)" ,lastsms)
  13. smsstring .= lastsms
  14. RegExMatch(NewReadLine, "\](.*), Sender: (.*) \((.*)\)" ,lastsms)
  15. smsstring .= lastsms
  16. FileAppend, `n%smsstring%,smslog.txt
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement