Advertisement
mironovdga

Untitled

Jun 11th, 2019
436
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.44 KB | None | 0 0
  1. forlic mysql_gangs_load()
  2. {  
  3.     new rows, fields;
  4.     cache_get_data(rows, fields);
  5.     if(rows)
  6.     {
  7.         for(new i = 1, id; i <= rows; i ++)
  8.         {  
  9.             new idx = i - 1;
  10.             id = cache_get_field_content_int(idx, "ID", func_mysql_auth);
  11.             if(id == 0) continue;
  12.             else if(id >= 1)
  13.             {              
  14.                 GangInfo[id][gID] = id;            
  15.                 cache_get_field_content(idx, "Name", GangName[id], func_mysql_auth, 50);
  16.             }
  17.         }
  18.     }
  19.     return true;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement