Advertisement
Sem_Loreann

Untitled

Apr 23rd, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. void LoadConnects()
  2. {
  3. if(!cache_num_rows()) return true;
  4. int time = GetTickCount();
  5. //for(int idx = 0; idx < cache_num_rows(); ++idx)
  6. for(int idx = 0, ids = 1; idx < cache_num_rows(); ++idx, ++ids)
  7. {
  8. cache_get_value_index_int(idx, 0, ConnectsInfo[ids][pID]);
  9. cache_get_value_index(idx, 1, ConnectsInfo[ids][pName], 24);
  10. cache_get_value_index(idx, 2, ConnectsInfo[ids][pIP], 16);
  11. cache_get_value_index(idx, 3, ConnectsInfo[ids][pDate], 16);
  12. cache_get_value_index(idx, 4, ConnectsInfo[ids][pTime], 16);
  13. TOTALCONNECTS++;
  14. }
  15. printf("[Load connects]: loading %i/%i ms", TOTALCONNECTS, GetTickCount() - time);
  16. return true;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement