13.07.2011, 19:30
Код:
new currank[64]; if(PlayerInfo[playerid][pDivision] == 1) { currank = "(NA)"; } else if(PlayerInfo[playerid][pDivision] == 2) { currank = "(II)"; } else if(PlayerInfo[playerid][pDivision] == 3) { currank = "(FTO)"; } else if(PlayerInfo[playerid][pDivision] == 4) { currank = "(IA)"; } else if(PlayerInfo[playerid][pDivision] == 5) { currank = "(SWAT)"; } else { currank = "(NA)"; } if(PlayerInfo[playerid][pRank] == 10) { format(string, sizeof(string), "** Chief %s %d #%d: %s, over. **", str,currank,PlayerInfo[playerid][pBadgeNumber], result); }
Suppose to be
(IA) Because im set to Division 4
**Cheif John Miller (IA) #102 : test, over **
but its saying
**Cheif John Miller 60 #102 : test, over **
why is this ??