trouble returning a float from a stock
alright i feel really dumb about not understanding why this is happening..
but anyway im getting tag mismatch errors when i call the stock and also at the end of the stock (at the closing }), ingame it all seems to still work fine, but id really like to get rid of the error msgs.. this is in a function where its called: Code:
here's the stock: Code:
i do not get these errors if i dont use floats, but i rather just use the floats and save myself from having to convert them back and forth if at all possible |
Re: trouble returning a float from a stock
Why not just do this:
Code:
Code:
But, I will show you how to do it your way: When returning values from a method, the data type must be declared: Code:
|
Re: trouble returning a float from a stock
wow im embarrassed i even posted now.. the first method you posted works and is something i somehow never even thought of
thanks! |
Re: trouble returning a float from a stock
Exolent: Can you really return arrays if the dimensions are the same? I thought that you couldn't ever return them. But if so, that's pretty cool.
|
Re: trouble returning a float from a stock
Yes we can :mrgreen:
|
| All times are GMT -4. The time now is 01:49. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.