Results 1 to 3 of 3
  1. #1
    phoenixraider's Avatar
    Join Date
    Aug 2008
    Gender
    male
    Posts
    37
    Reputation
    10
    Thanks
    21

    [Help]I get these SYNTAX errors.Please Help

    I made an empty project.
    I created a main.cpp file.

    I have theses errors:

    Code:
    ------ Build started: Project: wrhacker-1, Configuration: Debug Win32 ------
    
    Compiling...
    main.cpp
    main.cpp(74) : error C2059: syntax error : 'if'
    main.cpp(75) : error C2143: syntax error : missing ';' before '{'
    main.cpp(75) : error C2447: '{' : missing function header (old-style formal list?)
    main.cpp(79) : error C2059: syntax error : 'if'
    main.cpp(80) : error C2143: syntax error : missing ';' before '{'
    main.cpp(80) : error C2447: '{' : missing function header (old-style formal list?)
    main.cpp(84) : error C2059: syntax error : 'if'
    main.cpp(87) : error C2059: syntax error : 'if'
    The Syntax error "if" and missing ";" before "{" and '{' : missing function header (old-style formal point to all my if.
    Here is one of em ..

    Code:
    if(CH_On)
    {
        MemFuncOn();
    }
    Any help on how to fix ???

    on top I did ..

    Code:
    bool CH_On = false;
    Thank you.
    My private D3D

    [img]https://i279.photobucke*****m/albums/kk147/crusher233/PR.png[/img]

    X-Mas Hook in Action (version 1.0)
    [YOUTUBE]XET-y-2PZig[/YOUTUBE]

  2. #2
    ZeaS's Avatar
    Join Date
    Feb 2007
    Posts
    738
    Reputation
    15
    Thanks
    265
    and again.. why you've posten it on 4 sites..

    im thinking your really just added that code...you can't use a if-function in a cpp without a function (void...)

    Code:
    void Stuff()
    {
       if(CH)
       {
          Blah();
       }
    }

  3. #3
    phoenixraider's Avatar
    Join Date
    Aug 2008
    Gender
    male
    Posts
    37
    Reputation
    10
    Thanks
    21
    this is old lol ..
    I fixed this.
    Thnx for telling me to make a thread.
    My private D3D

    [img]https://i279.photobucke*****m/albums/kk147/crusher233/PR.png[/img]

    X-Mas Hook in Action (version 1.0)
    [YOUTUBE]XET-y-2PZig[/YOUTUBE]

Similar Threads

  1. Syntax Error. Please help.
    By jonboey in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 1
    Last Post: 10-31-2010, 03:14 AM
  2. I am Getting A Combat Arms Error(PLEASE HELP!)
    By DarkSoda in forum Combat Arms Hacks & Cheats
    Replies: 5
    Last Post: 08-11-2008, 08:41 PM
  3. i get a gameguard error in krw warrock
    By ww11111 in forum WarRock Korea Hacks
    Replies: 5
    Last Post: 12-02-2007, 10:26 AM
  4. How do i get these? Ammo-Speed!??
    By Cataldo in forum WarRock Korea Hacks
    Replies: 20
    Last Post: 05-26-2007, 09:04 PM
  5. Does any one know how to get these 2
    By AdamWest in forum WarRock - International Hacks
    Replies: 19
    Last Post: 06-29-2006, 11:00 AM

Tags for this Thread