Map Raid System

Hello, i’m making a Custom Code for my map(BG). But i don’t get a Code for:

When enter map, join to Raid

I have written something like, but when each player enters the map, creates a distinct group, instead of joining the Original.

[http://pastebin.com/kq3zQVTv](http://pastebin.com/kq3zQVTv)

Group* group = player->GetGroup(team); // Error
but

Group* group = GetBgRaid(team);
[COLOR=rgb(0,0,0)] if i use this, it isn’t declarate

something more like “GetBgRaid(team)”?, How i converter Group to Uint32(team)?

Can they help me?, Thanks /emoticons/default_smile.png

— Canned message start —

This thread is not related to the official Trinity codebase and was moved to the Custom Code section.

Please read the stickies next time.

— Canned message end —

Line 27 is funny ^^… You want to put a Player inside the Group, but instead you’re getting the Group of Player /emoticons/default_biggrin.png

Group* group = player->GetGroup(team); // Error
Check, if Player is in Zone (ZoneID ← Replace with your ZoneID)

if(InZone() == ZoneID)
{

}
else
{

}
and then get all Players in Zone and check for a Group of Players in the Zone

if(InZone() == ZoneID)
{
if(someplayer->GetGroup())
{
//Get Group
//Attach Player to Group
}
else
{
//Set Player in Group
}
}
else
{
//Not in Zone
}
This is just Pseudo Code…