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