Aller au contenu

Photo

Toolset doesnt recognize #include "xxxxx_h"


  • Veuillez vous connecter pour répondre
Aucune réponse à ce sujet

#1
sand beagle

sand beagle
  • Members
  • 22 messages
I am attempting to create items into my inventory, however whenever i try to compile the script, or any script really, that involves anything with: #include "xxxxx_h", i will get a resourse information error.The first _h in my script is "wrappers_h", when i compile, i will get this error:
E: 17:07:13 - my_event_handler_fixed_1.nss - Unable to get the resource information for "wrappers_h" of type "nss"

and if i get rid of "wrappers_h", i will get the next _h in the script:
E: 17:09:41 - my_event_handler_fixed_1.nss - Unable to get the resource information for "utility_h" of type "nss"

I am writing the scripts in the "scripts" section, not "client scripts" and it seems to happen with any script i do, even a base one with one line: #include utility_h, and i will get the error. I thought it worth mentioning that i am using windows 7, 64bit, and i had to manually install the toolset with SQL managment studio express in order to bypass the "unable to connect to database" problem. I would have posted in this forum earlier, but for some reason i could only post in the scripts section, and i believe this is more of a technical problem than a script problem.

Here is a copy of the script, just in case there might be something wrong, however the only log error i get is the _h ones:
#include "wrappers_h"
#include "utility_h"
#include "plt_my_custom_plot"

void main()
{
    if ( WR_GetPlotFlag( PLT_MY_CUSTOM_PLOT, MY_ITEM_CHECK_FLAG ) == TRUE )
        return;
    event ev = GetCurrentEvent();
    int nEventType = GetEventType(ev);
    switch ( nEventType )
    {
        case EVENT_TYPE_MODULE_LOAD:
        {
            UT_AddItemToInventory(R"1_armor_tunic.uti", 1);
            UT_AddItemToInventory(R"my_boots.uti", 1);
            UT_AddItemToInventory(R"my_destroyer.uti", 1);
            UT_AddItemToInventory(R"my_gloves", 1);
            UT_AddItemToInventory(R"my_ring.uti", 1);
            WR_SetPlotFlag( PLT_MY_CUSTOM_PLOT, MY_ITEM_CHECK_FLAG, TRUE );
            break;
        }
        default:
            break;
    }
}

Modifié par sand beagle, 22 novembre 2009 - 10:23 .