Why does this not work? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Why does this not work? (
/showthread.php?tid=398307)
Why does this not work? -
101 - 09.12.2012
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?
Re: Why does this not work? -
ikkentim - 09.12.2012
You can not multipy an int with a float. Insteat of *1.25, do *5/4
Re: Why does this not work? -
101 - 09.12.2012
Thanks, I can use HitMoney[otherplayer]*1.25 > amount at the if check though? As doing 5/4 wont work. (tested)