[Tutorial] Making a simple rank system for DM/TDM servers.
#3

Quote:
Originally Posted by SpikY_
Посмотреть сообщение
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);
To 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);
maybe some people will report it as bug.

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.
Fixed the float specifier, just a small typing mistake, thanks for pointing it out.

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.
Reply


Messages In This Thread
Making a simple rank system for DM/TDM servers. - by Sjn - 01.09.2015, 15:30
Re: Making a simple rank system for DM/TDM servers. - by SpikY_ - 01.09.2015, 16:05
Re: Making a simple rank system for DM/TDM servers. - by Sjn - 02.09.2015, 16:47
Re: Making a simple rank system for DM/TDM servers. - by Bomber07 - 03.09.2015, 00:07
Re: Making a simple rank system for DM/TDM servers. - by justice96 - 03.09.2015, 21:26
Re: Making a simple rank system for DM/TDM servers. - by Sjn - 03.09.2015, 22:00

Forum Jump:


Users browsing this thread: 1 Guest(s)