cache_get_field_content with Floats
#1

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
Reply
#2

Use floatstr.
Reply
#3

Quote:
Originally Posted by Vince
Посмотреть сообщение
Use floatstr.
Thanks man !
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)