14.09.2013, 20:32
I'm trying to make a random thing
But it shows up in game as "Your number is123124313412"
Код:
CMD:gamble(playerid, params[])
{
new rand = random(1-5);
new string[64];
format(string,sizeof(string),"Your number is %i",rand);
GivePlayerMoney(playerid, -10);
if(rand == 3)
{
SendClientMessage(playerid, COLOR_YELLOW, "Your number landed on 3, and you won 50 dollars!");
}
else
{
SendClientMessage(playerid, COLOR_RED, string);
}
return 1;
}


