Results 1 to 3 of 3
  1. #1
    ARKaMAN's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    This is the internet does it matter?
    Posts
    10
    Reputation
    10
    Thanks
    0
    My Mood
    Inspired

    Unhappy [HELP] C++ Syntax error "too many initializers"

    [HELP] C++ Syntax error "too many initializers"



    Any ideas?

  2. #2
    dheir's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    Florida
    Posts
    376
    Reputation
    13
    Thanks
    228
    My Mood
    Amused
    Quote Originally Posted by ARKaMAN View Post
    [HELP] C++ Syntax error "too many initializers"



    Any ideas?
    This one should be obvious to you.....

    This line:
    Code:
    BYTE ColdBloodedo[2] = {0xB8, 0x00, 0x00, 0x00, 0x00, 0xC3};
    to this:
    Code:
    BYTE ColdBloodedo[6] = {0xB8, 0x00, 0x00, 0x00, 0x00, 0xC3};
    You can't call a BYTE array with more indices than initialized.
    Or any array for that matter.
    Last edited by dheir; 08-16-2010 at 12:19 PM.

  3. The Following 2 Users Say Thank You to dheir For This Useful Post:

    ARKaMAN (08-16-2010),SkyAssasin (08-25-2010)

  4. #3
    ARKaMAN's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    This is the internet does it matter?
    Posts
    10
    Reputation
    10
    Thanks
    0
    My Mood
    Inspired
    Thanks, I just got it before you posted. Sorry this is not my code I grabbed it from a DL and I grabbed the offsets off this site to. I just started Coding C++ and using Ollydbg. I got it compile, and now my only problem is it does not work XD...

Similar Threads

  1. [Help Request] Syntax error plz help
    By pizza127 in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 12
    Last Post: 06-02-2011, 01:51 AM
  2. [Help Request] need help with retarded syntax errors
    By .:MUS1CFR34K:. in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 15
    Last Post: 05-17-2011, 01:19 PM
  3. 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, 08:29 PM
  4. PUBLIC HACK! TOO MANY ERRORS!
    By Pasquali in forum CrossFire Hacks & Cheats
    Replies: 6
    Last Post: 06-26-2009, 11:17 AM
  5. [Help]I get these SYNTAX errors.Please Help
    By phoenixraider in forum C++/C Programming
    Replies: 2
    Last Post: 10-18-2008, 08:57 PM