That gives me this error.
PHP Code:
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2013 ITB CompuPhase, AMX Mod X Team
Error: Invalid symbol name "" on line 12
Error: Invalid symbol name "" on line 13
Error: Number of arguments does not match definition on line 68
3 Errors.
Or did i put somewhere wrong? Here is the code.
PHP Code:
#include <amxmodx>
#include <fakemeta>
#include <zp50_core>
#define HAS_NVGS (1<<0)
#define USES_NVGS (1<<8)
#define get_user_nvg(%1) (get_pdata_int(%1,OFFSET_NVGOGGLES) & HAS_NVGS)
const OFFSET_NVGOGGLES = 129;
const LINUX_OFFSET_DIFF = 5;
const HAS_NVGS = 1<<0;
const USES_NVGS = 1<<8;
const OFFSET_NVGOGGLES = 129;
const m_flNextNightVisionTime = 619;
new bHasNVG[ 33 ];
public zp_fw_core_infect_post(id, attacker)
{
EnableNightVision(id)
}
public zp_fw_core_cure_post(id, attacker)
{
DisableNightVision(id)
}
EnableNightVision(id)
{
bHasNVG[ id ] = true;
set_user_nvg( id, 1 );
client_cmd(id, "nightvision")
}
DisableNightVision(id)
{
bHasNVG[ id ] = false;
set_user_nvg(id, 0)
}
set_user_nvg(id, nvgoggles = 0, turnon = 0)
{
new nvg = get_pdata_int(id, OFFSET_NVGOGGLES);
if( nvgoggles )
{
if( nvg & HAS_NVGS )
{
if( turnon && ~nvg & USES_NVGS )
{
force_client_use_nvg(id);
}
}
else
{
set_pdata_int(id, OFFSET_NVGOGGLES, HAS_NVGS);
force_client_use_nvg(id);
}
}
else
{
if( nvg & HAS_NVGS )
{
if( nvg & USES_NVGS )
{
force_client_use_nvg(id);
}
set_pdata_int(OFFSET_NVGOGGLES, 0);
}
}
}
force_client_use_nvg(id)
{
set_pdata_float(id, m_flNextNightVisionTime, 0.0);
engclient_cmd(id, "nightvision");
}
__________________