30.03.2011, 19:14
At the first
When two players are rank 1 the first player will not be showed because the string will get cleared if you doesn't use %s at this one.
You should use format(string,sizeof(string),""); above the loop so the string text you used before this function will get removed.
Код:
if(PlayerInfo[i][pVIP] == 1) { GetPlayerName(i, sendername, 50); format(string, 256, " {FF00E1}VIP[{87FF00}Faca{FFB400}]:{87FF00} %s\n\n", sendername); } // You should use if(PlayerInfo[i][pVIP] == 1) { GetPlayerName(i, sendername, 50); format(string, 256, "%s {FF00E1}VIP[{87FF00}Faca{FFB400}]:{87FF00} %s\n\n",string, sendername); }
You should use format(string,sizeof(string),""); above the loop so the string text you used before this function will get removed.