Advertisement
Guest User

Untitled

a guest
Aug 12th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. friends:
  2. Loop, read, %A_WorkingDir%\friends.txt
  3. {
  4.     friendarray_count++
  5.     if (friend_zeile[friendarray_count] == A_LoopReadLine)
  6.         Continue
  7.    
  8.     if (getPlayerIdByName(A_LoopReadLine) != -1)
  9.     {
  10.         Msg("Friend " A_LoopReadLine " is now online!")
  11.         friend_zeile[friendarray_count]
  12.     }
  13.     if (friend_zeile[friendarray_count] == A_LoopReadLine && getPlayerIdByName(A_LoopReadLine) == -1){
  14.         MSG("Friend " A_LoopReadLine " is now offline")
  15.         friend_zeile.delete[friendarray_count]
  16.     }
  17. }
  18. friendarray_count := 0
  19. return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement