native returns float
I am wondering how can I create a native what returns float?
|
Re: native returns float
public Float:return_float(id)
native Float:return_float(id) EDIT: Use Style 1 |
Re: native returns float
Since Pawn has no real types, every variable is a cell, so the tag you return doesn't actually mather, in none of the styles. Just make sure the native declaration has the Float tag so you don't get 'tag mismatch' warnings.
Code:
native Float:MyPrettyFloatNative(Float:blah) |
Re: native returns float
Quote:
Quote:
|
Re: native returns float
@AntiBots
Style 1 isn't required. The style is just a preference: Code:
I prefer style 0. |
Re: native returns float
Quote:
Anyway, i think NumB was talking about internal plugin native, aka simple function :D |
Re: native returns float
Well, he said create a native, so everyone assumed dynamic natives, rather than an internal function.
|
| All times are GMT -4. The time now is 16:51. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.