mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 14:37:29 +08:00
[server] Update n_floatstr(...)
This commit is contained in:
parent
fe2bce37db
commit
006376b50f
@ -84,7 +84,11 @@ static cell AMX_NATIVE_CALL n_floatstr(AMX *amx,cell *params)
|
||||
amx_GetString(szSource, pString, 0, sizeof szSource);
|
||||
|
||||
/* Now convert this to a float. */
|
||||
#ifdef WIN32
|
||||
fNum = (REAL)atof(szSource);
|
||||
#else
|
||||
fNum = (REAL)strtod(szSource,NULL);
|
||||
#endif
|
||||
|
||||
return amx_ftoc(fNum);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user