Need help with alignment
#1

We have a dialouge after base finishes. it shows how many damage people do. it alignment people by id's. for example;
ID 0 Klawtor 96(DMG)
ID 1 IBaRS 122(DMG)
ID 2 denzel 450(DMG)
ID 3 F0cus 0(DMG)

But it should be like this;
ID 2 denzel 450(DMG)
ID 1 IBaRS 122(DMG)
ID 0 Klawtor 96(DMG)
ID 3 F0cus 0(DMG)

so i need to alignment people by the damages they did

Hope you got it! Thanks
Reply
#2

still
Reply
#3

show code??
Reply
#4

Quote:
Originally Posted by fiki574_CRO
Посмотреть сообщение
show code??
For example;

for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(Player[i][pTeam] == T_ATT)
{
format(iStr, sizeof(iStr), "%s{D3D3D3}[%d]{8B1A1A}%s{D3D3D3}-{8B1A1A}DMG{D3D3D3}:%d{D3D3D3}-{8B1A1A}Kills{D3D3D3}:%d\n",iStr,i,PNames[i],gRoundDamage[i],Player[i][prScore]);
}
if(Player[i][pTeam] == T_DEF)
{
format(iStr, sizeof(iStr), "%s{D3D3D3}[%d]{104E8B}%s{D3D3D3}-{104E8B}DMG{D3D3D3}:%d{D3D3D3}-{104E8B}Kills{D3D3D3}:%d\n",iStr,i,PNames[i],gRoundDamage[i],Player[i][prScore]);
}
}
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)