Well i tried the bounty rabbit choose random player thing, didnt work i got like 25 gay errors.. void botInfo::GetRabbit()
{
if (getIngame() < 2) return;
rabbit = 0;
int t = GetTickCount() % getIngame();
_listnode <Player> *parse = playerlist->head;
while (parse)
{
Player *p = parse->item;
if ((p->ship != SHIP_Spectator) && (p->ship != SHIP_Javelin) && (p->safety == 0))
if (!(--t)) // if done counting random down playerlist
{
// prize 2k bounty if they are below 2k
if ( p->bounty < 2000 )
sendPrivate(p, "*prize 2000");
rabbit = p;
// timer for rabbit
countdown[0] = 10 * 60;
/*
String s;
s = "New Bounty Rabbit: ";
s += p->name;
s += " at ";
s += getCoords(p->pos.x, p->pos.y);
s += ". Kill the Rabbit to steal the 2000 bounty reward.";
sendPublic(s);
*/
sendPrivate(p,"You're the new Bounty Rabbit. Reward: 2000 bounty. Lose it if you die, ship change, spec, attach to a jav, leave arena, or go in a safe zone. New bounty rabbit chosen in 10 minutes.");
break;
}
parse = parse->next;
} Didnt edit any of that.. and got 29 errors :/ Or i could just use the code that explody gave me if someone helps me fix it?