Quote:
Originally Posted by mottzi
new Float:calc = (Float:g_playerFlags[id] + i_offset) / LEVEL_INCREMENT
this should do it. Remeber, one value in your calculation has to be a floating number
|
Quote:
Originally Posted by <VeCo>
You can make one of these variables Float:, use float() native or add * 1.0.
|
the warning is on the i_offset line.
The Float:calc is fine.
Reason: when you use a division operator it automatically requires your varible you're storing it to to be a float. Otherwise it will give an error or warning or whatever. I don't remember which....
new Float:i = 1 / 2
its accepted because you MUST be a float in order to have division within its calculations.
__________________