03.04.2010, 00:37
I have that, The idea is i want it to show how many kills you need before leveling up too, This is what i have so far:
Now i need a way to figure out how many hundreds are in the variable 'RankUpNeeded' and echo it as amount of kills needed before rankup.
Код:
CMD:points(playerid, params[]) { new PointsString1[128], PointsString2[128], RankUpNeeded; RankUpNeeded = PlayerInfo[playerid][PlayerPoints] - 1000; format(PointsString1, sizeof(PointsString1), "You currently have %d server points.", PlayerInfo[playerid][PlayerPoints]); format(PointsString2, sizeof(PointsString2), "You need %d more points before ranking up!.", RankUpNeeded); SendClientMessage(playerid, CommandSuccess, PointsString1); SendClientMessage(playerid, CommandError, PointsString2); }