Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void LoadConnects()
- {
- if(!cache_num_rows()) return true;
- int time = GetTickCount();
- //for(int idx = 0; idx < cache_num_rows(); ++idx)
- for(int idx = 0, ids = 1; idx < cache_num_rows(); ++idx, ++ids)
- {
- cache_get_value_index_int(idx, 0, ConnectsInfo[ids][pID]);
- cache_get_value_index(idx, 1, ConnectsInfo[ids][pName], 24);
- cache_get_value_index(idx, 2, ConnectsInfo[ids][pIP], 16);
- cache_get_value_index(idx, 3, ConnectsInfo[ids][pDate], 16);
- cache_get_value_index(idx, 4, ConnectsInfo[ids][pTime], 16);
- TOTALCONNECTS++;
- }
- printf("[Load connects]: loading %i/%i ms", TOTALCONNECTS, GetTickCount() - time);
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement