L 01/17/2011 - 11:17:38: [AMXX] Displaying debug trace (plugin "QTM_CodMod.amxx")
L 01/17/2011 - 11:17:38: [AMXX] Run time error 10: native error (native "get_weaponname")
L 01/17/2011 - 11:17:38: [AMXX] [0] QTM_CodMod.sma::CurWeapon (line 775)
Pdaje cala funkcje z linia 775
Linia 775 to jet ta:
get_weaponname(bron, weaponname, 21);
cala funkcja:
public CurWeapon(id)
{
if(!is_user_connected(id) || get_user_team(id) > 2)
return;
new bron = read_data(2);
new bronie = (bronie_klasy[klasa_gracza[id]] | bonusowe_bronie_gracza[id] | bronie_druzyny[(get_user_team(id))] | bronie_dozwolone);
if(!(1<<bron & bronie))
{
new weaponname[22];
get_weaponname(bron, weaponname, 21);
if((1<<bron) & (1<<CSW_HEGRENADE | 1<<CSW_SMOKEGRENADE | 1<<CSW_FLASHBANG))
set_task(0.1, "ZabierzGranat", id+ZADANIE_ZABIERZ_GRANAT);
else
engclient_cmd(id, "drop", weaponname);
}
if(cs_get_user_shield(id) && !gracz_ma_tarcze[id])
engclient_cmd(id, "drop", "weapon_shield");
UstawSzybkosc(id);
}


Dodatki SourceMod



Temat jest zamknięty








