-
C++ Teleporter problem
Hello guys i have problem with C++ Teleporter...On windows in Visual C++ 2008
Problem is -->
1>..\scripts\custom\bludisteteleporter.cpp(41) : error C2065: 'GossipSelect_Bludiste' : undeclared identifier
Code of Teleport
Code:
//Author gLararaN
//Revision = [16]
#include"precompiled.h"
//==============================================================================
//==================================MENU========================================
//==============================================================================
bool GossipHello_bludiste(Player *player, Creature *_Creature)
{
player->ADD_GOSSIP_ITEM( 7, "Teleportovat do Bludiste" , GOSSIP_SENDER_MAIN, 10020);
player->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,_Creature->GetGUID());
returntrue;
}
void SendDefaultMenu_bludiste(Player *player, Creature *_Creature, uint32 action )
{
switch(action)
{
//==============================================================================
//==================================TELEPORT====================================
//==============================================================================
case 10020: //bludiste
player->CLOSE_GOSSIP_MENU();
player->TeleportTo(0, -7653.692871f, 1042.606323f, 131.407410f, 5.524533f);
break;
}
}
//==============================================================================
//==================================Script======================================
//==============================================================================
void AddSC_bludiste()
{
Script *newscript;
newscript = new Script;
newscript->Name="bludiste";
newscript->pGossipHello = &GossipHello_bludiste;
newscript->pGossipSelect = &GossipSelect_bludiste;
newscript->pItemHello = NULL;
newscript->pGOHello = NULL;
newscript->pAreaTrigger = NULL;
newscript->pItemQuestAccept = NULL;
newscript->pGOQuestAccept = NULL;
newscript->pGOChooseReward = NULL;
newscript->RegisterSelf();
}
-
You didn't include it's name, try doing that.
Code:
newscript->Name="bludiste";
Aswell, please pay attention to the section you're posting your problems in.
-
u dont even have a gossipselect_bludiste option so I think u can comment out like so
//newscript->pGossipSelect = &GossipSelect_bludiste;
-
Oh i had this same problem just other day. But, yes, Cocain is correct!