[bot] Implement n_acos(...)

This commit is contained in:
RD42 2024-05-31 23:06:56 +08:00
parent 45c64be31d
commit 346395ee49

View File

@ -58,8 +58,9 @@ static cell AMX_NATIVE_CALL n_asin(AMX *amx, cell *params)
// native Float:acos(Float:value)
static cell AMX_NATIVE_CALL n_acos(AMX *amx, cell *params)
{
// TODO: n_acos
return 0;
CHECK_PARAMS(1);
float fResult = (float)(acos(amx_ctof(params[1])) * 180 / PI);
return amx_ftoc(fResult);
}
// native Float:atan(Float:value)