Skip to content
  • 0 Unread 0
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Collapse

Plutonium

  1. Home
  2. BO2 Modding Support & Discussion
  3. Zombies Counter Error

Zombies Counter Error

Scheduled Pinned Locked Moved BO2 Modding Support & Discussion
1 Posts 1 Posters 342 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Segaundefined Offline
    Segaundefined Offline
    Sega
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    1

    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
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Unread 0
    • Recent
    • Tags
    • Popular
    • Users
    • Groups