Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Donate
Collapse

Plutonium

  1. Home
  2. MW3 Client Support
  3. Killstreak HUD GSC Error

Killstreak HUD GSC Error

Scheduled Pinned Locked Moved MW3 Client Support
5 Posts 2 Posters 537 Views 1 Watching
  • 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.
  • 12345abcdefghundefined Offline
    12345abcdefghundefined Offline
    12345abcdefgh
    wrote on last edited by
    #1

    Keep getting and error when i try to display the killstreak counter on my HUD in private match. The error says "unexpected &" and when i remove the "&" the text for "killstreak" doesnt pop up. Heres the code i took from a forum:

    #include maps\mp\gametypes_hud_util;

    init() {
    level thread onPlayerConnect();
    }

    onPlayerConnect() {
    for (;;) {
    level waittill("connected", player);
    player thread killstreakPlayer();
    }
    }

    killstreakPlayer() {
    self endon("disconnect");
    level endon("game_ended");
    self.hudkillstreak = createFontString("Objective", 1);
    self.hudkillstreak setPoint("CENTER", "TOP", "CENTER", 10);
    self.hudkillstreak.label = & "^5KILLSTREAK: ^7";

    while (true) {
        self.hudkillstreak setValue(self.pers["cur_kill_streak"]);
        wait 0.5;
    }
    

    }

    1 Reply Last reply
    0
    • Resxtundefined Offline
      Resxtundefined Offline
      Resxt
      Plutonium Staff
      wrote on last edited by
      #2

      Read the topic from where you downloaded it. I answered and fixed all the warnings/errors it was throwing

      12345abcdefghundefined 1 Reply Last reply
      0
      • Resxtundefined Resxt

        Read the topic from where you downloaded it. I answered and fixed all the warnings/errors it was throwing

        12345abcdefghundefined Offline
        12345abcdefghundefined Offline
        12345abcdefgh
        wrote on last edited by
        #3

        Resxt i got it from here : https://github.com/whoismh11/plutoiw5-scripts#how-to-use
        and cant find ur comments

        Resxtundefined 1 Reply Last reply
        0
        • 12345abcdefghundefined Offline
          12345abcdefghundefined Offline
          12345abcdefgh
          wrote on last edited by
          #4

          nvm i just used ur new gsc script and it works even better!

          1 Reply Last reply
          0
          • 12345abcdefghundefined 12345abcdefgh

            Resxt i got it from here : https://github.com/whoismh11/plutoiw5-scripts#how-to-use
            and cant find ur comments

            Resxtundefined Offline
            Resxtundefined Offline
            Resxt
            Plutonium Staff
            wrote on last edited by
            #5

            12345abcdefgh ah that's someone who copied it in his Github ok
            https://forum.plutonium.pw/topic/10826/hud-killstreak-player/9

            1 Reply Last reply
            0

            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
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Donate