How to extract Float to Integer
#6

I want to make a /givemoney [playerid] [Ammount(dollar.cent)] command, realism money system and suport for this script:

Код:
stock GivePlayerCash(playerid, dollar, cent=0)
{
        new dollars, mtotal;
        dollars = dollar*100;
        mtotal = dollars+cent;
	SetPVarInt(playerid, "Cash", GetPVarInt(playerid, "Cash")+mtotal);
	GivePlayerMoney(playerid, mtotal);
	return 1;
}
Sorry for my bad english
Quote:
Originally Posted by KeNTos
Посмотреть сообщение
Misunderstand you. What exactly do you want?
Reply


Messages In This Thread
How to extract Float to Integer - by Raefal - 31.05.2014, 08:44
Re: How to extract Float to Integer - by Calgon - 31.05.2014, 08:50
Re: How to extract Float to Integer - by Raefal - 31.05.2014, 08:54
Re: How to extract Float to Integer - by Calgon - 31.05.2014, 08:55
Re: How to extract Float to Integer - by KeNTos - 31.05.2014, 08:57
Re: How to extract Float to Integer - by Raefal - 31.05.2014, 09:07
Re: How to extract Float to Integer - by Calgon - 31.05.2014, 09:15
Re: How to extract Float to Integer - by Vince - 31.05.2014, 10:01
Re: How to extract Float to Integer - by Konstantinos - 31.05.2014, 10:29
Re: How to extract Float to Integer - by Calgon - 31.05.2014, 10:31

Forum Jump:


Users browsing this thread: 2 Guest(s)