Likes: 0
Results 1 to 4 of 4
Thread: C++ Teleporter problem
-
08-05-10, 07:54 AM #1
C++ Teleporter problem
Register to remove this adHello 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(); }
› See More: C++ Teleporter problem
-
09-05-10, 06:26 AM #2
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.
-
30-07-10, 07:44 AM #3
u dont even have a gossipselect_bludiste option so I think u can comment out like so
//newscript->pGossipSelect = &GossipSelect_bludiste;
-
30-07-10, 05:42 PM #4
Register to remove this adOh i had this same problem just other day. But, yes, Cocain is correct!
Leecher - 01/07/10!
Active Member - 05/07/10!
Moderator - 14/08/10!
Contributor - 15/09/10!