Menu

Compile error:

Help
Owyn
2010-08-24
2013-04-05
  • Owyn

    Owyn - 2010-08-24

    so i fixed include paths for headers and changed incude <metamod.h> to include "metamod.h" so it would work but last thing needs more fixing to compile =\

    error: a value of type "const char *" cannot be assigned to an entity of type "char *" C:\sdk_files\metamod-p-1.19p32\metamod\linkplug.cpp 44

    on line

    LINK_ENTITY_TO_PLUGIN(adminmod_timer, "adminmod");

    how can i fix it?

    btw what does this line do? this "adminmod", do i need it? if it is commented all compiles fine

     
  • Jussi Kivilinna

    Jussi Kivilinna - 2010-08-24

    If you do _not_ use Adminmod, you will not need that line. Linking entities to specific plugin is a very very old hack to register custom plugin entities, later it was figured that such thing is not required so Adminmod is the only plugin (the first metamod plugin) that uses this hack.

     
  • Jussi Kivilinna

    Jussi Kivilinna - 2010-08-24

    Possible fix:

    Change in "metamod\linkent.h":

    line 81:   char *entStr; \

    to

    line 81:   const char *entStr; \

     

Log in to post a comment.