Hi, i recently started working with advanced vault system made by Destro and version 1.5
the plugin i want to make is ranktop, something like that.
i will try to explain, i have the following function:
PHP Code:
public ShowTop(id, Num)
{
new g_sort = adv_vault_sort_create(g_vault, ORDER_DESC, 60, 2000, CS_Stats[STATS_KILLS])
new mvp, keyindex, Player[32]
new toploop = min(adv_vault_sort_numresult(g_vault, g_sort), Num)
console_print(id,"")
console_print(id,"================ Top MVP ================")
for(new position=Num-15 ; position <= toploop; position++)
{
if(position >= Num+1)
break
keyindex = adv_vault_sort_position(g_vault, g_sort, position)
if(!adv_vault_get_prepare(g_vault, keyindex)) continue
mvp = adv_vault_get_field(g_vault, CS_Stats[STATS_MvP])
adv_vault_get_keyname(g_vault, keyindex, Player, 31)
console_print(id, "#%d Player: %s - Total Kills: %d", position, Player, mvp)
}
console_print(id,"===========================================")
console_print(id,"")
adv_vault_sort_destroy(g_vault, g_sort)
}
this is just an example
i want these values to be displayed in motd
just that... if i want that when... let's say a player write "/topmvp 300" in chat
to display the entire top from 1 to 300 in motd format
you already know what the problem would be, the maximum size of the buffer
i can't display elements in motd larger than... i don't know exactly... 3072?
sorry, i don't know exactly anymore
both the html code and the values from the advanced vault are stored in that buffer
and... you will realize that it will exceed the maximum size very quickly
my question is, is there any possibility to display exorbitantly large elements in that motd ?
and i mean by "exorbitant" in the pure sense.
when i specified a top from 1 to 300 it was an example
the initial value can easily exceed 2000 positions
this method will not only help me with this "ranktop" but it will also help me with other projects that i haven't finished yet and have the same problem with max buffer size.
if i'm not mistaken, someone else wanted something similar here, but the answers didn't give me a conclusive solution