new Array:aKey = ArrayCreate( 35 )
new Array:aData = ArrayCreate( 128 )
new Array:aAll = ArrayCreate( FvaultData )
fvault_load( g_VaultSkillPoints, aKey, aData )
new iArraySize = ArraySize( aKey )
new Data[ FvaultData ]
new i
for( i = 0; i < iArraySize; i++ )
{
ArrayGetString( aKey, i, Data[ szSteamID ], sizeof Data[ szSteamID ] - 1 )
ArrayGetString( aData, i, Data[ szSkillP_Data ], sizeof Data[ szSkillP_Data ] - 1 )
ArrayPushArray( aAll, Data )
}
ArraySort( aAll, "SortData" )
new szPlayerPoints[ 7 ]
new szPlayerLevel[ 7 ]
new szPlayerKills[ 7 ]
new szPlayerDeahts[ 7 ]
new szPlayerHeadShots[ 7 ]
new szPlayerKnifeKills[ 7 ]
new szPlayerKnifeDeaths[ 7 ]
new szPlayerGrenadeKills[ 7 ]
new szPlayerGrenadeDeaths[ 7 ]
new szPlayerBombExplosions[ 7 ]
new szPlayerDefusedBombs[ 7 ]
new szPlayerWonRounds[ 7 ]
new szName[ 22 ]
new iSize = clamp( iArraySize, 0, 12 )
new j
for( j = 0; j < iSize; j++ )
{
ArrayGetArray( aAll, j, Data )
It didn't work of course
Is it because:
1- I did it wrong.
2- They are using the SQL version (LINK) while I'm using the fvault one ?
I'm pretty it's because of reason 1,I know that it is possible to use images in motd
.
.
.
.
.
Extra questions if it's doable :
1- Can I use a GIF image ? (animated)
2- what is the ma size of the image ?
3- Can I use more then one ? egne on top with my server name and one below with some info (ranks will be reset XX/XX/XX at XX:YY....)
public MakeTop15( )
{
new iLen
iLen = formatex( g_szMotd, charsmax( g_szMotd ),
"<body bgcolor=#A4BED6>\
<body><img src="img.jpg" alt="Top15" width="100%%" height="100px"></body> // <-- here ? and should I remove /body ?
<table width=100%% cellpadding=2 cellspacing=0 border=0>\
<tr align=center bgcolor=#52697B>\
<th width=4%%>#\
<th width=30%% align=left>Player\
<th width=8%%>Kills\
<th width=8%%>Deaths\
<th width=8%%>HS\
<th width=8%%>Knife\
<th width=8%%>Grenade\
<th width=8%%>Bombs\
<th width=8%%>Defuses\
<th width=10%>SkillPoints" )
new Array:aKey = ArrayCreate( 35 )
new Array:aData = ArrayCreate( 128 )
new Array:aAll = ArrayCreate( FvaultData )
fvault_load( g_VaultSkillPoints, aKey, aData )
new iArraySize = ArraySize( aKey )
new Data[ FvaultData ]
new i
for( i = 0; i < iArraySize; i++ )
{
ArrayGetString( aKey, i, Data[ szSteamID ], sizeof Data[ szSteamID ] - 1 )
ArrayGetString( aData, i, Data[ szSkillP_Data ], sizeof Data[ szSkillP_Data ] - 1 )
ArrayPushArray( aAll, Data )
}
ArraySort( aAll, "SortData" )
new szPlayerPoints[ 7 ]
new szPlayerLevel[ 7 ]
new szPlayerKills[ 7 ]
new szPlayerDeahts[ 7 ]
new szPlayerHeadShots[ 7 ]
new szPlayerKnifeKills[ 7 ]
new szPlayerKnifeDeaths[ 7 ]
new szPlayerGrenadeKills[ 7 ]
new szPlayerGrenadeDeaths[ 7 ]
new szPlayerBombExplosions[ 7 ]
new szPlayerDefusedBombs[ 7 ]
new szPlayerWonRounds[ 7 ]
new szName[ 22 ]
new iSize = clamp( iArraySize, 0, 12 )
new j
for( j = 0; j < iSize; j++ )
{
ArrayGetArray( aAll, j, Data )
new Array:aKey = ArrayCreate( 35 )
new Array:aData = ArrayCreate( 128 )
new Array:aAll = ArrayCreate( FvaultData )
fvault_load( g_VaultSkillPoints, aKey, aData )
new iArraySize = ArraySize( aKey )
new Data[ FvaultData ]
new i
for( i = 0; i < iArraySize; i++ )
{
ArrayGetString( aKey, i, Data[ szSteamID ], sizeof Data[ szSteamID ] - 1 )
ArrayGetString( aData, i, Data[ szSkillP_Data ], sizeof Data[ szSkillP_Data ] - 1 )
ArrayPushArray( aAll, Data )
}
ArraySort( aAll, "SortData" )
new szPlayerPoints[ 7 ]
new szPlayerLevel[ 7 ]
new szPlayerKills[ 7 ]
new szPlayerDeahts[ 7 ]
new szPlayerHeadShots[ 7 ]
new szPlayerKnifeKills[ 7 ]
new szPlayerKnifeDeaths[ 7 ]
new szPlayerGrenadeKills[ 7 ]
new szPlayerGrenadeDeaths[ 7 ]
new szPlayerBombExplosions[ 7 ]
new szPlayerDefusedBombs[ 7 ]
new szPlayerWonRounds[ 7 ]
new szName[ 22 ]
new iSize = clamp( iArraySize, 0, 12 )
new j
for( j = 0; j < iSize; j++ )
{
ArrayGetArray( aAll, j, Data )