20.12.2009, 11:49
Hello, how I can do this math action in sa-mp?
Thanks
pawn Код:
new checks = 1000;
new tax = checks*0.02;
print(tax);
new checks = 1000;
new tax = checks*0.02;
print(tax);
S:\SA-MP Files\VRP\gamemodes\obj.pwn(380) : warning 213: tag mismatch S:\SA-MP Files\VRP\gamemodes\obj.pwn(381) : error 035: argument type mismatch (argument 1) S:\SA-MP Files\VRP\gamemodes\obj.pwn(380) : warning 204: symbol is assigned a value that is never used: "tax"
new checks = 1000;
new Float:tax = checks*0.02;
printf("%f", tax);
Originally Posted by kLx
Oh, so it was a float, thanks.
|
new checks = 1000;
new tax = checks*0.02;
printf("%d", tax);
printf(tag);
but im not sure