Jump to content

C++ anti experience source problem


Recommended Posts

int _block_exp (lua_State * L) // disable experience to INT 
{ 
    LPCHARACTER ch = CQuestManager :: instance (). GetCurrentCharacterPtr (); 
    ch-> block_exp = true; 
    return 0; 
} 

int _unblock_exp (lua_State * L) // experience enable INT to 
{ 
    LPCHARACTER ch = CQuestManager :: instance (). GetCurrentCharacterPtr (); 
    ch-> block_exp = false; 
    return 0; 
}

questlua_pc.cpp:2815: error: expected initializer before 'int'

questlua_pc.cpp:2829: error: expected unqualified-id before '{' token

questlua_pc.cpp:3043: error: expected `}' at end of input

when i added this it gave me all these errors

if anyone can help me to fix this please thanks

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.