Raised This Month: $ Target: $400
 0% 

[HELP] Strange tag mismatch - float algorhytm


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 06-21-2014 , 16:28   Re: [HELP] Strange tag mismatch - float algorhytm
Reply With Quote #2

Because you're trying to return a Float: tagged variable through a non-tagged stock.

Code:
stock calculation(const Float:x) {     new Float:Result           if(x > 1)         Result = 3 / (x - 1)     else if(x == 1)         Result = x * 0     else if(x < 1)         Result = (4 * x * x) - 2               return Result           }
__________________

Last edited by Black Rose; 06-21-2014 at 16:30.
Black Rose 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 21:14.


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