PHP Code:
public hud(id)
{
new cooldown = countdown[id] + 1
new cooldown1 = countdown1[id] + 1
if(cooldown == 0)
{
set_hudmessage(127, 255, 85, -1.0, 0.83, 0, 6.0, 0.9)
show_hudmessage(id, "[Berserk - Ready] [G]")
ready[id] = 1
}
else {
set_hudmessage(127, 255, 85, -1.0, 0.83, 0, 6.0, 0.9)
show_hudmessage(id, "[Berserk - %d] [G]",countdown[id] + 1)
}
if(cooldown1 == 0)
{
set_hudmessage(127, 255, 85, -1.0, 0.83, 0, 6.0, 0.9)
show_hudmessage(id, "^n[Reproduce - Ready] [R]")
ready1[id] = 1
}
else {
set_hudmessage(127, 255, 85, -1.0, 0.83, 0, 6.0, 0.9)
show_hudmessage(id, "^n[Reproduce - %d] [R]",countdown1[id] + 1)
}
if(cooldown == 10)
{
new fovn = 110
fm_set_rendering(id, kRenderFxGlowShell,255,0,0,kRenderNormal,20)
set_pev(id,pev_fov, fovn)
set_pev(id,pev_speed, speed)
emit_sound(id,CHAN_VOICE,ability1end,1.0,ATTN_NORM,0,PITCH_NORM)
}
}
Why do i get run time error 4: index out of bounds here?:
PHP Code:
if(cooldown == 0)