Help with equation?
#3

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:

Код:
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);
}
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.
Reply


Messages In This Thread
Help with equation? - by LoneWolf23245 - 03.04.2010, 00:26
Re: Help with equation? - by adsy - 03.04.2010, 00:32
Re: Help with equation? - by LoneWolf23245 - 03.04.2010, 00:37
Re: Help with equation? - by adsy - 03.04.2010, 00:43
Re: Help with equation? - by LoneWolf23245 - 03.04.2010, 00:55
Re: Help with equation? - by adsy - 03.04.2010, 00:55

Forum Jump:


Users browsing this thread: 1 Guest(s)