error compiling RemovePvPFlag menu

User Tag List

Results 1 to 4 of 4
  1. #1
    soul02's Avatar Active Member
    Reputation
    33
    Join Date
    Mar 2008
    Posts
    168
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    error compiling RemovePvPFlag

    what i want is.. if the player pvpflag is set on the npc will remove it but im gettg an error pls help me..

    Gastricpenguin, Spidey if u guys read this pls help me

    Code:
    case 300: // The Malls
    	{
    	if(pTarget->HasFlag(PLAYER_FLAGS))
    	{
    	 Plr->RemovePvPFlag();
    	Plr->EventTeleport( 1, -8573.78,  1994.88,  100.721);
                    Plr->BroadcastMessage("|cffFFFF00[Nemesis Staff]|r |cffFF0000PvP is not allowed in this area.|r");
                    Plr->Gossip_Complete();
                    } else {
                    Plr->BroadcastMessage("Your PVP flag has been remove!");
                    Plr->Gossip_Complete(); 
                    } 
    	}break;
    error msg

    ..\src\GlobalNPC\GlobalNPC.cpp(891) : error C2065: 'pTarget' : undeclared identifier
    ..\src\GlobalNPC\GlobalNPC.cpp(891) : error C2227: left of '->HasFlag' must point to class/struct/union/generic type
    type is ''unknown-type''

    thankyou
    Last edited by soul02; 06-19-2008 at 07:28 AM.

    error compiling RemovePvPFlag
  2. #2
    TheSpidey's Avatar Elite User
    Reputation
    365
    Join Date
    Jan 2008
    Posts
    2,200
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    pTarget is not defined.
    And the function requires two parameters: Player->HasFlag(PLAYER_FLAGS, PLAYER_FLAG_FREE_FOR_ALL_PVP); or whatever that flag is called

  3. #3
    soul02's Avatar Active Member
    Reputation
    33
    Join Date
    Mar 2008
    Posts
    168
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks Spidey

  4. #4
    soul02's Avatar Active Member
    Reputation
    33
    Join Date
    Mar 2008
    Posts
    168
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ok i fixed the error but now i cant enter my mall when my pvpflag is off

    Code:
    case 300: // The Malls
    	{
            if(Plr->IsPvPFlagged())
            {
    	Plr->EventTeleport( 1, -8573.78,  1994.88,  100.721);
            Plr->BroadcastMessage("|cffFFFF00[Nemesis Staff]|r |cffFF0000PvP is not allowed in this area.|r");
            Plr->Gossip_Complete();
            } else {
            Plr->RemovePvPFlag();
            Plr->BroadcastMessage("Your PVP flag has been remove!");
            Plr->Gossip_Complete(); 
            } 
    	}break;
    *edit* nvr i fixed it
    Last edited by soul02; 06-20-2008 at 10:38 AM.

Similar Threads

  1. [ Help ] - Error compile to class DSCStorage with ScriptDev2
    By Ithylis in forum WoW EMU Questions & Requests
    Replies: 1
    Last Post: 08-01-2009, 03:05 PM
  2. Error compiling with custom scripts
    By Nadromar in forum WoW EMU Questions & Requests
    Replies: 2
    Last Post: 06-14-2009, 01:16 PM
  3. Error compiling Hearthstone
    By Nadromar in forum WoW EMU Questions & Requests
    Replies: 4
    Last Post: 05-09-2009, 06:54 PM
  4. WoW Error after compiling Ascent
    By Shao111 in forum World of Warcraft Emulator Servers
    Replies: 9
    Last Post: 12-31-2007, 04:17 PM
  5. [HELP] Ascent Compiling Error.
    By jokerjokes in forum World of Warcraft Emulator Servers
    Replies: 23
    Last Post: 12-10-2007, 12:53 AM
All times are GMT -5. The time now is 10:34 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search