Jump to content
  • 0

C++ anti experience source problem


ziad

Question

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

  • Answers 2
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

2 answers to this question

Recommended Posts

  • 0

i got it right thank you , but ! theres a problem man .. when i use the anti exp i get like 20 30 lvl instead of losing exp and none is giving me an answer about that , i tried this source thing but still nthg .. idk what else to do i tried more than 15 quests and same 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Activity

    1. 45

      Official Pickup Slot Effect [REVERSED]

    2. 0

      damage from int to long long

    3. 22

      Green & Purple Potions Effect

    4. 12

      When Uninstalling Gaya System

    5. 12

      When Uninstalling Gaya System

    6. 12

      When Uninstalling Gaya System

    7. 12

      When Uninstalling Gaya System

    8. 12

      When Uninstalling Gaya System

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • 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.