SA-MP Forums Archive
return float - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: return float (/showthread.php?tid=349326)



return float - Britas - 08.06.2012

Hello. How to return float variable? Thanks.


Re: return float - [ABK]Antonio - 08.06.2012

Save it as a string then use
pawn Код:
floatstr(MyFuncThatReturnsAFloatAsString);
https://sampwiki.blast.hk/wiki/Floatstr


AW: Re: return float - Nero_3D - 08.06.2012

Quote:
Originally Posted by [ABK]Antonio
Посмотреть сообщение
Save it as a string then use
pawn Код:
floatstr(MyFuncThatReturnsAFloatAsString);
https://sampwiki.blast.hk/wiki/Floatstr
Its like doing ((x * 5) / 5), it would be x again

Just return it

pawn Код:
stock Float: ReturnMe(Float: var) {
    return var;
}



Re: return float - HuSs3n - 08.06.2012

pawn Код:
stock Float: returnfloat()
{
    new Float:hello;
    return hello;
}
late