Why does this not work?
#1

This is my check, it works.
pawn Код:
if(HasHit[otherplayer] >= 1 && HitMoney[otherplayer]*1.25 > amount)
This is what I'm trying to use to tell him how much he has to put atleast!
pawn Код:
You Have To Add Atleast $%d!",HitMoney[otherplayer]*1.25
The second part does not work. It writes out: $1184005120

Anyone knows why?
Reply
#2

You can not multipy an int with a float. Insteat of *1.25, do *5/4
Reply
#3

Thanks, I can use HitMoney[otherplayer]*1.25 > amount at the if check though? As doing 5/4 wont work. (tested)
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)