PDA

View Full Version : C++ Teleporter problem



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();
}

Cocain
09-05-10, 06:26 AM
You didn't include it's name, try doing that.

newscript->Name="bludiste";
Aswell, please pay attention to the section you're posting your problems in.

hax0rz
30-07-10, 07:44 AM
u dont even have a gossipselect_bludiste option so I think u can comment out like so

//newscript->pGossipSelect = &GossipSelect_bludiste;

Bing
30-07-10, 05:42 PM
Oh i had this same problem just other day. But, yes, Cocain is correct!