This commit is contained in:
David Anderson 2004-08-29 17:15:32 +00:00
parent 53f8d12237
commit a3d048880f

View File

@ -1682,7 +1682,7 @@ static cell AMX_NATIVE_CALL set_task(AMX *amx, cell *params) /* 2 param */
} else { } else {
iFunc = registerSPForwardByName(amx, stemp, FP_CELL, FP_DONE); iFunc = registerSPForwardByName(amx, stemp, FP_CELL, FP_DONE);
} }
if (!iFunc) if (iFunc == -1)
{ {
AMXXLOG_Log("[AMXX] Function is not present (function \"%s\") (plugin \"%s\")",stemp,plugin->getName() ); AMXXLOG_Log("[AMXX] Function is not present (function \"%s\") (plugin \"%s\")",stemp,plugin->getName() );
amx_RaiseError(amx,AMX_ERR_NATIVE); amx_RaiseError(amx,AMX_ERR_NATIVE);