glararan
08-05-10, 07:54 AM
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
//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());
return true;
}
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();
}
Problem is -->
1>..\scripts\custom\bludisteteleporter.cpp(41) : error C2065: 'GossipSelect_Bludiste' : undeclared identifier
Code of Teleport
//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());
return true;
}
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();
}