Multiples of x
#1

How would I do something like this?

If(PlayerInfo---bla bla bla = a multiple of 16...

Like if it was 16, 32, 48, etc... Is this possible?
Reply
#2

Код:
stock IsMultiple(number, multiple)
{
	if(number % multiple == 0) return true;
	else return false;
}
Example: if(IsMultiple(PlayerInfo[playerid][Number], 16) == true) { print("yay it's true"); }
Reply


Forum Jump:


Users browsing this thread: