[SOLVED]Tag mismatch from adding a float - 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: [SOLVED]Tag mismatch from adding a float (
/showthread.php?tid=631280)
[SOLVED]Tag mismatch from adding a float -
Celson - 26.03.2017
This code is giving me a tag mismatch. If I get rid of the 'newredratingdiff' float it will compile without error.
PHP код:
rating[i] = rating[i] + newredratingdiff;
EDIT: Solved. Turns out that this worked. First I've seen of doing that.
PHP код:
rating[i] = rating[i] + _:newredratingdiff;
Re: [SOLVED]Tag mismatch from adding a float -
raydx - 26.03.2017
You can't add float to integer without floatround:
Код:
rating[i] = rating[i] + floatround(newredratingdiff);
Or you can change rating to float.