Floatstr

From SA-MP Wiki

Jump to: navigation, search

Floatstr


Converts a string to a float.


Parameters:
(const string[])
stringThe string to convert into a float


ReturnsThe requested float.


new before[4] = '6.9';
SetPlayerPos(playerid, 0, 0, floatstr(before));

Related Functions

The following functions might be useful as well, as they're related to this function in one way or another.

Image:Stub.png This article/section is a stub
You can help SA-MP by expanding it
Image:Stub.png
Personal tools