[Help] Error Adding Item To Menu

Discussion in 'Subnautica Accounts - Buy Sell Trade' started by vaisefud3, 12/6/17.

Thread Status:
Not open for further replies.
  1. vaisefud3

    vaisefud3
    Expand Collapse
    High Risk Status: This user has been flagged as high risk due to one or more reasons

    0   0   0

    Offline
    Hey, Getting error "Send Error Report" when adding item
    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;
    }
    Any Ideas?
    Thanks!

    PS.: There's nothing when compile the code, the error is IN the game!
     
    • This user is inactive. Hasn't logged into their account in over 60 days.
Thread Status:
Not open for further replies.