Advertisement
Johurt

[FNC] CheckFileForBuggers

Nov 3rd, 2015
300
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.62 KB | None | 0 0
  1. stock CheckFileForBuggers()
  2. {
  3.     new buf[2048], File:handle = fopen("money/money.txt", io_read), c, kelintas, kur[2], suma[11];
  4.     if(handle)
  5.     {
  6.         while(fread(handle, buf))
  7.         {
  8.             if(strfind(buf, "[BANK | CH]", true) == -1 || strfind(buf, "Opt: 10", true) == -1) continue;
  9.             kelintas = 0;
  10.             for(c = 0; c < 200; c++)
  11.             {
  12.                 if(buf[c] == 0x7C)
  13.                 {
  14.                     kelintas ++;
  15.                     if(kelintas == 1) continue;
  16.                                 kur[kelintas-2] = c;
  17.                     if(kelintas > 2) break;
  18.                 }
  19.             }
  20.             strmid(suma, buf, kur[0] + 6, kur[1] - 1);
  21.             if(strval(suma) > 3000) print(buf);
  22.         }
  23.         fclose(handle);
  24.     }
  25.     return 1;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement