cache_get_field_content with Floats - 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: cache_get_field_content with Floats (
/showthread.php?tid=364325)
cache_get_field_content with Floats -
oKzrh - 30.07.2012
Hi!
How can I use "cache_get_field_content" with floats?
I know how to use it with strval and strings, like that:
pawn Код:
cache_get_field_content(0, "owned", temp); vInfo[vehicleid][vOwned] = strval(temp);
cache_get_field_content(0, "owner", vInfo[vehicleid][vOwner]);
But how do I use that with floats? This doesn't work:
pawn Код:
cache_get_field_content(0, "posX", vInfo[vehicleid][vPos][0]);
cache_get_field_content(0, "posY", vInfo[vehicleid][vPos][1]);
cache_get_field_content(0, "posZ", vInfo[vehicleid][vPos][2]);
Thanks
Re: cache_get_field_content with Floats -
Vince - 30.07.2012
Use floatstr.
Re: cache_get_field_content with Floats -
oKzrh - 30.07.2012
Quote:
Originally Posted by Vince
Use floatstr.
|
Thanks man

!