Raised This Month: $ Target: $400
 0% 

New Thread. Warning report


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Liverwiz
Veteran Member
Join Date: Feb 2010
Location: Maryland
Old 05-18-2012 , 15:01   Re: New Thread. Warning report
Reply With Quote #6

Quote:
Originally Posted by mottzi View Post
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> View Post
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.
__________________
What an elegant solution to a problem that doesn't need solving....
Liverwiz is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:29.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode