View Single Post
Old 29/05/2020, 08:06 PM   #4
Little Clucker
Join Date: May 2013
Posts: 33
Reputation: 13
Default Re: Dice command problem

Originally Posted by Nexotronix View Post
Try this:

pawn Code:
    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.
Relic is offline   Reply With Quote