Thread: Syntax error

Results 1 to 2 of 2
  1. #1
    0Bx's Avatar
    Join Date
    Feb 2021
    Gender
    male
    Location
    Finland
    Posts
    7
    Reputation
    10
    Thanks
    1
    My Mood
    Drunk

    Syntax error

    So im getting a syntax error on this and im not really good at coding so could someone help me

    CODE:
    class CEntity
    {
    public:
    NETVAR(Spotted, "CBaseEntity->m_bSpotted", bool);

    };

    ERROR:
    syntax error: '<' was unexpected here; expected '>'

  2. #2
    adenosinetp10's Avatar
    Join Date
    Aug 2022
    Gender
    male
    Posts
    1
    Reputation
    10
    Thanks
    0
    My Mood
    Bored

    too little information

    The code you have provided has very little information.
    What is NETVAR() ?
    Show the NETVAR() function prototype or function definition.

    Code:
    NETVAR(Spotted, "CBaseEntity->m_bSpotted", bool);
    Are you sure the data type of the arguments you passed are correct ?

    Is
    Code:
    "CBaseEntity->m_bSpotted"
    supposed to be a string ?

Similar Threads

  1. [HELP] C++ Syntax error "too many initializers"
    By ARKaMAN in forum Call of Duty Modern Warfare 2 Coding / Programming / Source Code
    Replies: 2
    Last Post: 08-16-2010, 11:28 AM
  2. Help.....! bad syntax error..
    By tjwjdqls75 in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 14
    Last Post: 07-23-2010, 07:29 PM
  3. [SOLVED] Syntax Error
    By Shucker in forum Call of Duty Modern Warfare 2 Help
    Replies: 11
    Last Post: 07-22-2010, 09:22 AM
  4. error C2061: syntax error : identifier '__RPC__out_xcount_part'
    By That0n3Guy in forum C++/C Programming
    Replies: 12
    Last Post: 11-06-2009, 01:25 PM
  5. [Help]I get these SYNTAX errors.Please Help
    By phoenixraider in forum C++/C Programming
    Replies: 2
    Last Post: 10-18-2008, 07:57 PM