02.09.2015, 16:47
Quote:
Good work.
and make this Код:
format(string, sizeof(string), "Your current rank is %i (%s) | Bonus armour: %0.2F", rankid, g_RankInfo[rankid][RankName], g_RankInfo[rankid][RankArmour]); // Let the player know his current rank with how much bonus armour he can get SendClientMessage(playerid, -1, string); Код:
format(string, sizeof(string), "Your current rank is %i (%s) | Bonus armour: %0.2f", rankid, g_RankInfo[rankid][RankName], g_RankInfo[rankid][RankArmour]); // Let the player know his current rank with how much bonus armour he can get SendClientMessage(playerid, -1, string); and why don't you update it when player get those amount of score that are needed for the new rank? its updating when the Player spawn. |
And also i have already commented saying // This function updates the player's rank. You can call this anywhere wherever you want to update the player's rank so they can call the function when player's score gets updated, however thank you for your comment.