18/03/2021, 12:42 PM
Hola buenas tengo un drama con un código resulta que me esta tirando estos errores
No se realmente como puedo solucionar ese problema por eso acudo acá para saber si me pueden ayudar a ver como lo soluciono.
Dejo la native
Dejo el código timer_task
ojala me puedan ayudar a resolver este problema ya que no quiero que tire mas ese error al log.
Cita:L 03/18/2021 - 01:34:16: Start of error session.
L 03/18/2021 - 01:34:16: Info (map "bhop_lego") (file "addons/amxmodx/logs/error_20210318.log")
L 03/18/2021 - 01:34:16: Invalid index 518 (count: 351)
L 03/18/2021 - 01:34:16: [AMXX] Displaying debug trace (plugin "kzargtop.amxx", version "1.7")
L 03/18/2021 - 01:34:16: [AMXX] Run time error 10: native error (native "ArrayGetCell")
L 03/18/2021 - 01:34:16: [AMXX] [0] kzargtop.sma::Native_GetBotTime (line 1139)
L 03/18/2021 - 01:34:16: Unhandled dynamic native error
L 03/18/2021 - 01:34:16: [AMXX] Displaying debug trace (plugin "kzargmod.amxx", version "2.34")
L 03/18/2021 - 01:34:16: [AMXX] Run time error 10: native error (native "GetBotTime")
L 03/18/2021 - 01:34:16: [AMXX] [0] bhop_mod.sma::timer_task (line 1398)
No se realmente como puedo solucionar ese problema por eso acudo acá para saber si me pueden ayudar a ver como lo soluciono.
Dejo la native
Código PHP:
public Native_GetBotTime(iPlugin, iParams) {
if(!g_iBotIndex) return 0;
return ArrayGetCell(g_aPlayerTime[0], g_iCurrentFrame);
}
Dejo el código timer_task
Código PHP:
if(!is_user_alive(id))
{
new specmode = pev(id, pev_iuser1);
if(specmode == 2 || specmode == 4)
{
new target = pev(id, pev_iuser2);
g_idspecting[1][id] = target;
g_idspecting[0][id] = true;
new tiempo = stock_get_user_roundtime(target);
new tiempo2 = GetBotTime(target)
if(!is_user_bot(target))
kz_hud_center(id, "^n^n^n^n^n^nTiempo: %02d:%02d", (tiempo/60), (tiempo%60));
else kz_hud_center(id, "^n^n^n^n^n^nTiempo: %02d:%02d", (tiempo2/60), (tiempo2%60));
}
else g_idspecting[0][id] = false;
}
ojala me puedan ayudar a resolver este problema ya que no quiero que tire mas ese error al log.