nbdyson

Untitled

Sep 5th, 2015
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.52 KB | None | 0 0
  1. forward OnAchievementsLoad(playerid, queryQueue);
  2. public OnAchievementsLoad(playerid, queryQueue)
  3. {
  4.         Debug(DEBUG_CALLBACK_QUERY, "OnAchievementsLoad(%d)", playerid);
  5.  
  6.         // Race condition check
  7.         if(pQueryQueue[playerid] != queryQueue)
  8.                 return true;
  9.  
  10.         cache_get_data(rows, fields, 1);
  11.     if(rows)
  12.     {
  13.                 for(i = 0; i != rows; i++)
  14.                 {
  15.                         if(MySQL::getInt(i, 1) == 0)
  16.                             vector_set(i, playerid, 1);
Advertisement
Add Comment
Please, Sign In to add comment