Advertisement
Guest User

Untitled

a guest
Aug 28th, 2018
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.62 KB | None | 0 0
  1. public LoadClanInfo()
  2. {
  3. clanss = cache_num_rows( );
  4. for( new i = 0; i <= clanss; i++ )
  5. {
  6. new f = cache_get_field_content_int( i, "clanID" );
  7. ClanInfo[ f ][ cClanID ] = f;
  8. ClanInfo[ f ][ cClanExpire ] = cache_get_field_content_int( i , "clanExpire" );
  9. ClanInfo[ f ][ cClanActive ] = cache_get_field_content_int( i , "clanActive" );
  10. ClanInfo[ f ][ cClanSlots ] = cache_get_field_content_int( i , "clanSlots" );
  11. ClanInfo[ f ][ cClanSeif ] = cache_get_field_content_int( i, "clanSeif" );
  12.  
  13. cache_get_field_content( i, "clanName", ClanInfo[ f ][ cClanName ], SQL, 130);
  14. cache_get_field_content( i, "clanTag", ClanInfo[ f ][ cClanTag ], SQL, 130);
  15. cache_get_field_content( i, "clanColor", ClanInfo[ f][ cClanColor ], SQL, 130);
  16. cache_get_field_content( i, "clanMOTD", ClanInfo[ f][ cClanMOTD ], SQL, 130);
  17. cache_get_field_content( i, "clanRankName1", ClanInfo[ f ][ cClanRankName1 ], SQL, 130);
  18. cache_get_field_content( i, "clanRankName2", ClanInfo[ f ][ cClanRankName2 ], SQL, 130);
  19. cache_get_field_content( i, "clanRankName3", ClanInfo[ f ][ cClanRankName3 ], SQL, 130);
  20. cache_get_field_content( i, "clanRankName4", ClanInfo[ f ][ cClanRankName4 ], SQL, 130);
  21. cache_get_field_content( i, "clanRankName5", ClanInfo[ f ][ cClanRankName5 ], SQL, 130);
  22. cache_get_field_content( i, "clanRankName6", ClanInfo[ f ][ cClanRankName6 ], SQL, 130);
  23. cache_get_field_content( i, "clanRankName7", ClanInfo[ f ][ cClanRankName7 ], SQL, 130);
  24. }
  25. printf( "Clans: %d", clanss);
  26. return true;
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement