#5

Код:
stock FormatNumber(inum, const sizechar[] = ",") // RyDeR`
{
	new string[16];
	format(string, sizeof(string), "%d", inum);
	
	for(new ilen = strlen(string) - 3; ilen > 0; ilen -= 3)
	{
		strins(string, sizechar, ilen);
	}
	return string;
}

if(strcmp(cmd, "/jackpot", true) == 0)
{
	new stringss[256];
	format(stringss, sizeof(stringss), "[Lotto] The Lottery Jackpot is now at $%s. Type /lotto [Number] to purchase a lotto Ticket.", 			FormatNumber(LottoJackpot));
	SendClientMessage(playerid, COLOR_RED, stringss);
	return 1;
}
Reply


Messages In This Thread
Help - by bugmenotlol - 18.11.2016, 11:31
Re: Help - by justice96 - 18.11.2016, 11:40
Re: Help - by bugmenotlol - 18.11.2016, 11:49
Re: Help - by oMa37 - 18.11.2016, 11:53
Re: Help - by justice96 - 18.11.2016, 12:02
Re: Help - by OneDay - 18.11.2016, 12:08

Forum Jump:


Users browsing this thread: 1 Guest(s)