search (2x):
replace with (2x):ApiClanGetLeaderboard()
search:ApiClanGetLeaderboard(int sortID, int page)
under it add this:CWOBackendReq req(&gUserProfile, "api_ClanGetInfo.aspx");
req.AddParam("CharID", gUserProfile.ProfileData.ArmorySlots[gUserProfile.SelectedCharID].LoadoutID);
req.AddParam("func", "lb");
search this:req.AddParam("page", page);
req.AddParam("sorting", sortID);
replace everything until:void FrontendWarZ::eventRequestClanList(r3dScaleformMovie* pMovie, const Scaleform::GFx::Value* args, unsigned argCount)
with://async it
search this:r3d_assert(argCount == 2);
int sortID = args[0].GetInt();
int page = args[1].GetInt();
gfxMovie.Invoke("_root.api.Main.Clans.clearClanInfo", 0);
if(page == 0)
m_currentClanPage = 0;
else if(page == 1)
m_currentClanPage -= 1;
else if(page == 2)
m_currentClanPage += 1;
under it add:void updateSurvivorTotalWeight(int survivor);
Only ASPX & MSSQL Stuff needs to be done because I'm using PHP & MySQL.// clan stuff
int m_currentClanPage;
If you're using my PHP API replace ClanGetInfo.php with this:
http://pastebin.com/L6kP4GYy



Reply With Quote![[Semi-Tutorial] Adding paged clan list](http://ragezone.com/hyper728.png)

