[SOLVED]Tag mismatch from adding a float
#1

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
Reply
#2

You can't add float to integer without floatround:

Код:
rating[i] = rating[i] + floatround(newredratingdiff);
Or you can change rating to float.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)