PHP Code:
L 10/30/2013 - 03:58:53: [FAKEMETA] Invalid entity
L 10/30/2013 - 03:58:53: [AMXX] Displaying debug trace (plugin "SurfTimer.amxx")
L 10/30/2013 - 03:58:53: [AMXX] Run time error 10: native error (native "set_pdata_int")
L 10/30/2013 - 03:58:53: [AMXX] [0] SurfTimer.sma::fm_set_weapon_ammo (line 3118)
L 10/30/2013 - 03:58:53: [AMXX] [1] SurfTimer.sma::give_scout (line 1270)
L 10/30/2013 - 03:58:53: [AMXX] [2] SurfTimer.sma::event_curweapon (line 2399)
L 10/30/2013 - 03:58:53: [AMXX] [0] SurfTimer.sma::fm_set_weapon_ammo (line 311
PHP Code:
stock fm_set_weapon_ammo(weapon_id, ammo)
{
set_pdata_int(weapon_id, 51, ammo, EXTRAOFFSET_WEAPONS);
}
L 10/30/2013 - 03:58:53: [AMXX] [1] SurfTimer.sma::give_scout (line 1270)
PHP Code:
public give_scout(id, armita)
{
new ent = fm_give_item(id, g_weaponconst[armita]);
fm_set_weapon_ammo(ent, 0)
}
L 10/30/2013 - 03:58:53: [AMXX] [2] SurfTimer.sma::event_curweapon (line 2399)
PHP Code:
public event_curweapon(id)
{
if( get_pcvar_num(cvar_enable) != 1 )
return
static last_weapon[33];
static weapon_active, weapon_num
weapon_active = read_data(1)
weapon_num = read_data(2)
//Checks Weapons to prevents bugs time
if( g_armaprotop[id] && g_playerstart[id] && is_user_alive(id) )
{
if( weapon_num != CSW_KNIFE && weapon_num != CSW_USP )
{
fm_strip_user_weapons(id)
give_uspknife(id)
}
}
else if( !g_armaprotop[id] && g_playerstart[id] && is_user_alive(id) )
{
if( weapon_num != g_numerodearma[id] )
{
fm_strip_user_weapons(id)
give_scout(id, g_numerodearma[id])
}
}
Any help to stop errors?
__________________