Getting the half sum of a variable
#1

I have this:

new robbery;
robbery = PlayerInfo[playerid][pHeadValue]%2;

If robbery is 600k it will be 300k if you understand?
Reply
#2

pawn Код:
new robbery;
robbery = (PlayerInfo[playerid][pHeadValue]) / 2;
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)