Skip to content
MPGHThe Dark Arts
/
RegisterLog in
Forum
Community
What's NewLatest posts across the boardTrendingHottest threads right nowSubscribedThreads you follow
Discussion
GeneralIntroductionsEntertainmentDebate FortFlaming & Rage
Board
News & AnnouncementsMPGH TimesSuggestions & HelpGiveaways
More Sections
Art & Graphic DesignProgrammingHackingCryptocurrency
Hacks & Cheats
Games
ValorantCS2 / CS:GOCall of Duty / WarzoneFortniteApex LegendsEscape From Tarkov
+14 moreLeague of LegendsGTA VMinecraftRustROTMGBattlefieldTroveBattleOnCombat ArmsCrossFireBlackshotRuneScapeDayZDead by Daylight
Resources
Game Hacking TutorialsReverse EngineeringGeneral Game HackingAnti-CheatConsole Game Hacking
Tools
Game Hacking ToolsTrainers & CheatsHack/Release NewsNew
Submit a release →Share your cheat, tool, or config with the community.
AINEW
AI Tools
General & DiscussionPrompt EngineeringLLM JailbreaksHotAI Agents & AutomationLocal / Open Models
AI × Gaming
AI Aimbots & VisionML Anti-CheatGame Bots & Automation
Create
AI Coding / Vibe CodingAI Art & MediaAI Voice & TTS
The AI frontier →Where game hacking meets modern machine learning. Jump in.
Marketplace
Buy & Sell
SellingBuyingTradingUser Services
Trust & Safety
Middleman LoungeMarketplace TalkVouch Copy Profiles
Money
Cryptocurrency TalkCurrency ExchangeWork & Job Offers
Start selling →List accounts, services, and goods. Use the middleman to trade safe.
MPGH The Dark Arts

A community for offensive security research, reverse engineering, and AI.

Community

ForumMarketplaceSearch

Account

RegisterLog in

Legal

Privacy PolicyForum RulesHelp & FAQ
© 2026 MPGH · All rights reserved.Built by the community, for the community. For educational purposes onlyContent is shared for security research and education — we don't condone illegal use. You're responsible for complying with applicable laws. Use at your own risk.
Home › Forum › MultiPlayer Game Hacks & Cheats › Combat Arms Hacks & Cheats › Combat Arms Hack Coding / Programming / Source Code › Combat Arms Coding Help & Discussion › ERROR, with my code.

ERROR, with my code.

Posts 1–12 of 12 · Page 1 of 1
topblast
topblast
ERROR, with my code.
When i use AddItem[Located in sTab struct. I get an error about Char*Item_Name. It Compiles fine just when I call that one function everything got a problem.



[php]struct sItem
{
char* Name, **Options;
int* Value;
bool Selectable;
sItem(char* NAME, char** OPTIONS, int* VALUE, bool SELECTABLE)
{
Name=NAME;Options=OPTIONS;Value=VALUE;Selectable=S ELECTABLE;
}
~sItem()
{}
};

struct sTab
{
int noItems, totHeight;
char* Name;
sItem* Items;
int Selected;

void AddItem(char* Item_Name, char** Options, int* DefaultValue=0)
{
Items[noItems]=sItem(Item_Name, Options, DefaultValue, true);
noItems++;
totHeight=(noItems*15);
}
void AddText(char* Item_Name, char* Option)
{
Items[noItems]=sItem(Item_Name, (char**)Option, 0, false);
noItems++;
totHeight=(noItems*15);
}

sTab(){
Name="New Tab";
noItems=0;
totHeight=60;
Selected=0;
}
~sTab()
{
Items=new sItem((char*)NULL,(char**)NULL, (int*)NULL, (bool)NULL);
Name=(char*)NULL;
noItems=0;
totHeight=0;
}
};
[/php]
#1 · edited 15y ago · 15y ago
WH
whit
Pic of the Error?
#2 · 15y ago
ac1d_buRn
ac1d_buRn
extactly, whats the error you get?
#3 · 15y ago
topblast
topblast
Image added
#4 · 15y ago
GO
Gordon`
Code:
sItem* Items; 
Items=new sItem((char*)NULL,(char**)NULL, (int*)NULL, (bool)NULL); 
Items[noItems]=sItem(Item_Name, Options, DefaultValue, true);
i only see you creating 1 item

be very careful with pointers!

Code:
char* Name, **Options;
int* Value;
very dangerous thing if you do it the wrong way
#5 · edited 15y ago · 15y ago
topblast
topblast
Quote Originally Posted by Gordon` View Post
Code:
sItem* Items; 
Items=new sItem((char*)NULL,(char**)NULL, (int*)NULL, (bool)NULL); 
Items[noItems]=sItem(Item_Name, Options, DefaultValue, true);
i only see you creating 1 item

be very careful with pointers!

Code:
char* Name, **Options;
int* Value;
very dangerous thing if you do it the wrong way
I am still lost
#6 · 15y ago
GO
Gordon`
Pointers
operator new[] - C++ Reference
#7 · 15y ago
why06
why06
Honey its cuz when you add a new item. That item doesn't exist.

Right there babay
Code:
Items[noItems]=sItem(Item_Name, (char**)Option, 0, false);
You either need to either initialize an array of sItems
Code:
Items = new sItems[some number];
or
make Items a sItems**, meaning it will only point to new sItems, and not hold the struct in the array honey.

I would do the first since if you do the latter its a good chance your structs will be deleted since they are declared in scope babe.
#8 · 15y ago
topblast
topblast
Quote Originally Posted by why06 View Post
Honey its cuz when you add a new item. That item doesn't exist.

Right there babay
Code:
Items[noItems]=sItem(Item_Name, (char**)Option, 0, false);
You either need to either initialize an array of sItems
Code:
Items = new sItems[some number];
or
make Items a sItems**, meaning it will only point to new sItems, and not hold the struct in the array honey.

I would do the first since if you do the latter its a good chance your structs will be deleted since they are declared in scope babe.
I am trying both now
#9 · 15y ago
why06
why06
btw that made more sense when I was a girl.
#10 · 15y ago
topblast
topblast
now i am getting a similar problem with my drawtext Then when i dont drawText I get an error with Show() Function
#11 · 15y ago
freedompeace
freedompeace
Quote Originally Posted by topblast View Post
now i am getting a similar problem with my drawtext Then when i dont drawText I get an error with Show() Function
Check over any code that uses pointers, Access Violations are related to reading memory (usually from bad pointers).

It might be that you're doing the same as before, trying to access a pointer as an array to something when you've only initialised it as a single item.
#12 · 15y ago
Posts 1–12 of 12 · Page 1 of 1

Post a Reply

Tags for this Thread

None