mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 22:47:29 +08:00
[server/bot] Disable amx_RaiseError in n_strval
This commit is contained in:
parent
0eccd8405c
commit
b25e027cf7
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user