09.07.2011, 11:31
how to return float as argument
and use
str is "100.0"
what is wrong?
sorry for my bad English
Code:
void ReturnFloatArg(AMX* amx, cell param, double value)
{
cell *cptr;
amx_GetAddr(amx, param, &cptr);
*cptr = amx_ftoc(value);
}
Code:
ReturnFloatArg(amx, params[1], atof(str));
what is wrong?
sorry for my bad English

