18.11.2016, 12:02
Код:
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;
}
