Dice command problem
#4

Quote:
Originally Posted by Nexotronix
View Post
Try this:

pawn Code:
CMD:dice(playerid,params[])
{
    new string[128];
    if(HasDice[playerid] == 0) return SendClientMessage(playerid, -1, "You don't have a pair of dices");
    format(string, sizeof(string), "You throwed dices and it stands to: %i", random(12));//12 'cause you throwed a pair of it
    SendClientMessage(playerid, -1, string);
    return 1;
}
Works smoothly man!

Thanks bruda, +repped you.
Reply


Messages In This Thread
Dice command problem - by Relic - 29.05.2020, 17:48
Re: Dice command problem - by Nexotronix - 29.05.2020, 18:07
Re: Dice command problem - by Cell_ - 29.05.2020, 20:01
Re: Dice command problem - by Relic - 29.05.2020, 20:06
Re: Dice command problem - by Nexotronix - 29.05.2020, 20:08
Re: Dice command problem - by Adamoneoone - 29.05.2020, 20:10

Forum Jump:


Users browsing this thread: 2 Guest(s)