Error Adding Item To Menu
Hey, Getting error "Send Error Report" when adding item
to menu...
Codes:
Any Ideas?
Thanks!
PS.: There's nothing when compile the code, the error is IN the game!
to menu...
Codes:
Code:
Call:
Menu->AddItem("WallHack", &WH, Green, White);
Menu.h:
struct
{
char item[30];
bool* var;
D3DCOLOR colorON;
D3DCOLOR colorOFF;
}MENU[100];
Menu.cpp:
void MyMenu::AddItem(char item[30], bool* var, D3DCOLOR ColorON, D3DCOLOR ColorOFF) {
numtotal++;
sprintf_s(MENU[numtotal].item, "%s", item); <---------- Error occours here!
MENU[numtotal].var = var;
MENU[numtotal].colorON = ColorON;
MENU[numtotal].colorOFF = ColorOFF;
}
Thanks!
PS.: There's nothing when compile the code, the error is IN the game!
