Zombies Counter Crashing BO2
-
Any zombie counter that i try, that "works" it crashes, the others are script failures, I have the crash file pls help.
the .dmp file: https://we.tl/t-PehZeAJbR1
Without the zombie counter script it works fineMy discord: ThugDuck12#3747
-
ThugDuck12 Try this
init() { level thread onPlayerConnect(); } onPlayerConnect() { for(;;) { level waittill("connected", player); player thread drawZombiesCounter(); } } drawZombiesCounter() { self.zombiesCounter = maps/mp/gametypes_zm/_hud_util::createFontString( "hudsmall" , 1.9 ); self.zombiesCounter maps/mp/gametypes_zm/_hud_util::setPoint( "CENTER", "CENTER", "CENTER", 190 ); while( true ) { self.zombiesCounter setValue( ( maps/mp/zombies/_zm_utility::get_round_enemy_array().size + level.zombie_total ) ); if( maps/mp/zombies/_zm_utility::get_round_enemy_array().size + level.zombie_total != 0 ) self.zombiesCounter.label = &"Zombies: ^1"; else self.zombiesCounter.label = &"Zombies: ^6"; wait 0.05; } }
-
Cahz niceee it worked, thanks a lot