01.09.2015, 00:15
Quote:
Technically "seconds / 60" is not a float. So whatever "seconds / 60" is, it will automatically be rounded to the nearest integer. You need to add ".0" to the "60".
|
if it gets rounded to the nearest it's gonna be 3 minutes and no seconds, which doesn't happen..
But maybe it would improve the efficiency of the code, and make it slightly faster, IF that's true..
Quote:
12. Do not mix floats and integers in an expression
by Mauzen Maybe this one is too simple, but I at least wanted to add it, as I see people doing that "mistake" very often. Never mix up floats and integers (even if it does not give a tag mismatch warning). Always use the same datatypes in a single statement. e.g. pawn Код:
pawn Код:
|