Raised This Month: $ Target: $400
 0% 

Nightvision NEED SMALL HELP!


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
myusername
Senior Member
Join Date: Aug 2012
Old 01-14-2014 , 07:47   Re: Nightvision NEED SMALL HELP!
Reply With Quote #5

That gives me this error.
PHP Code:
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c1997-2013 ITB CompuPhaseAMX 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 
bHasNVG33 ];

public 
zp_fw_core_infect_post(idattacker)
{
    
EnableNightVision(id)
}

public 
zp_fw_core_cure_post(idattacker)
{
    
DisableNightVision(id)
}

EnableNightVision(id)
{        
    
bHasNVGid ] = true;
    
set_user_nvgid);
    
client_cmd(id"nightvision")
}

DisableNightVision(id)
{
    
bHasNVGid ] = false;
    
set_user_nvg(id0)
}

set_user_nvg(idnvgoggles 0turnon 0)
{
    new 
nvg get_pdata_int(idOFFSET_NVGOGGLES);
    if( 
nvgoggles )
    {
        if( 
nvg HAS_NVGS )
        {
            if( 
turnon && ~nvg USES_NVGS )
            {
                
force_client_use_nvg(id);
            }
        }
        else
        {
            
set_pdata_int(idOFFSET_NVGOGGLESHAS_NVGS);
            
force_client_use_nvg(id);
        }
    }
    else
    {
        if( 
nvg HAS_NVGS )
        {
            if( 
nvg USES_NVGS )
            {
                
force_client_use_nvg(id);
            }
            
set_pdata_int(OFFSET_NVGOGGLES0);
        }
    }
}

force_client_use_nvg(id)
{
    
set_pdata_float(idm_flNextNightVisionTime0.0);
    
engclient_cmd(id"nightvision");

__________________
Rest in piece.
myusername is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:12.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode