Code: Show/Hide dmg->AddFake(bd->p, &bd->pos, Bot_Killed, Bot_Respawn, bd); void Bot_Killed(Player *p, Player *killer, void *clos) { chat->SendMessage(killer, "u killed it"); BotData *bd = clos; void *v; chat->SendMessage(killer, "u killed it"); stats->IncrementStat(killer, STAT_FLAG_POINTS, p->position.bounty); stats->SendUpdates(v); chat->SendMessage(killer, "u killed it"); kill_bot(bd); if (get_bases(0) < 1) { chat->SendArenaMessage(ALLARENAS, "RTZ game has been won by team 1!"); new_game(); } else if (get_bases(1) < 1) { chat->SendArenaMessage(ALLARENAS, "RTZ game has been won by team 0!"); new_game(); } } |
Bak wrote: |
try using printf instead of logman or sendarenamessage. also make sure you end your lines with a \n so it'll flush the stream..
logman and sendarenamessage do buffering so they aren't instant. |
Code: Show/Hide #include "stdio.h" int main() { printf("hello"); *((int*)0) = 0xbeef; return 0; } |
Code: Show/Hide stats->SendUpdates(v); |
Code: Show/Hide kill_bot(bd); |