[server/bot] Disable amx_RaiseError in n_strval

This commit is contained in:
RD42 2024-04-18 22:46:19 +08:00
parent 0eccd8405c
commit b25e027cf7

View File

@ -547,7 +547,7 @@ static cell AMX_NATIVE_CALL n_strval(AMX *amx,cell *params)
amx_GetAddr(amx,params[1],&cstr); amx_GetAddr(amx,params[1],&cstr);
amx_StrLen(cstr,&len); amx_StrLen(cstr,&len);
if (len>=50) { if (len>=50) {
amx_RaiseError(amx,AMX_ERR_NATIVE); //amx_RaiseError(amx,AMX_ERR_NATIVE);
return 0; return 0;
} /* if */ } /* if */
amx_GetString(str,cstr,0,sizeof str); amx_GetString(str,cstr,0,sizeof str);