Math in a variable
#1

Hello,

I'm working on a simple calculation. But I cannot get it work in a variable.
I tried the following methods. All the time I will get an argument mismatch error/warning if I use the variable at 'GivePlayerMoney'.

pawn Код:
new Calculation = COwnerData[i][Price] * 0.85;
I also tried braces.

pawn Код:
new Float:Calculation = COwnerData[i][Price] * 0.85;
I also tried format, didn't work out.
Reply


Messages In This Thread
Math in a variable - by Biesmen - 14.01.2011, 10:06
Re: Math in a variable - by JamesC - 14.01.2011, 10:24

Forum Jump:


Users browsing this thread: 2 Guest(s)