постоянно ругаеться но работает на
Code
register_event("DeathMsg","deathmsg","a")
..........
public deathmsg() {
new attacker = read_data(1) // attacker
new victim = read_data(2)
grab[attacker-1] = 0 // на эту строчку 3004
grabsearch[attacker-1] = false
new pid = is_user_grabbed(victim)
if(pid != -1)
grab[pid-1] = 0
}
L 02/12/2008 - 07:02:32: [AMXX] Displaying debug trace (plugin "allheroes.amxx")
L 02/12/2008 - 07:02:32: [AMXX] Run time error 4: index out of bounds
L 02/12/2008 - 07:02:32: [AMXX] [0] allheroes.sma::deathmsg (line 3004)Добавлено (2008-02-12, 1:00 Pm)
---------------------------------------------
Да и в другом плагине он ругаеться на
Code
public Damage(id)
{
new weapon, hitpoint, attacker = get_user_attacker(id,weapon,hitpoint)
if(attacker<=maxplayers && is_user_alive(attacker) && attacker!=id)
{
new money = read_data(2) * get_pcvar_num(mpd)
if(hitpoint==1) money += get_pcvar_num(mhb)
cs_set_user_money(attacker,cs_get_user_money(attacker) + money)
}
}
Я незнаю что такое read_data(2) вобще есть идеи?