View Single Post
Old 21/05/2019, 03:13 PM   #7
KinxpIn
Little Clucker
 
Join Date: Dec 2018
Posts: 25
Reputation: 0
Default Re: How to grouping? 10 pcs equals 1 box

Quote:
Originally Posted by Threshold View Post
Number of carrots / Number of carrots per crate = Number of crates needed



20 / 10 = 2
So,

CratePoints[0][CrateStock] += PlayerInfo[playerid][pWheat][0] / 10;



That means I have to limit if players want to sell carrots, at least 10 seeds must be in order for the crater stock to not be decimal
KinxpIn is offline   Reply With Quote