Zombies Counter Error
-
Error: https://imgur.com/a/KQU64Fl
_clientids:
#include maps\mp\_utility; #include common_scripts\utility; #include maps\mp\gametypes_zm\_hud_util; #include maps\mp\gametypes_zm\_hud_message; #include maps\mp\gametypes_zm\counter; init() { level.perk_purchase_limit = 9; for(;;) { level waittill("connected", player); player thread welcome(); } } welcome() { self endon("disconnect"); self waittill("spawned_player"); wait 7; self iprintln("^0 No Perk Limit in BLACK IRIDESCENT"); }counter:
#include maps\mp\_utility; #include common_scripts\utility; #include maps\mp\gametypes_zm\_hud_util; #include maps\mp\gametypes_zm\_hud_message; #include maps\mp\gametypes_zm\counter; init() { level thread drawZombiesCounter(); } drawZombiesCounter() { level.zombiesCounter = createServerFontString("hudsmall" , 1.9); level.zombiesCounter setPoint("CENTER", "CENTER", "CENTER", 190); level thread updateZombiesCounter(); } updateZombiesCounter() { oldZombiesCount = get_current_zombie_count(); while(true) { newZombiesCount = get_current_zombie_count(); wait 0.05; if(oldZombiesCount != newZombiesCount) { level thread updateZombiesCounter(); return; } else { if(newZombiesCount != 0) level.zombiesCounter.label = &"Zombies: ^1"; else level.zombiesCounter.label = &"Zombies: ^6"; level.zombiesCounter setValue(newZombiesCount); } } }Been stealing code and asking for help for 2 hours. 10/10 contemplating suicide.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login