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

Plutonium

  1. Home
  2. MW3 Modding Support & Discussion
  3. iPrintLn for everyone?

iPrintLn for everyone?

Scheduled Pinned Locked Moved MW3 Modding Support & Discussion
5 Posts 3 Posters 600 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.
  • shanzundefined Offline
    shanzundefined Offline
    shanz
    wrote on last edited by
    #1

    I've already tried level.println("test"); but I get "Error executing function", so how can I print a message for everyone?

    S3VDITOundefined 1 Reply Last reply
    0
    • shanzundefined shanz

      I've already tried level.println("test"); but I get "Error executing function", so how can I print a message for everyone?

      S3VDITOundefined Offline
      S3VDITOundefined Offline
      S3VDITO
      wrote on last edited by
      #2

      shanz said in iPrintLn for everyone?:

      I've already tried level.println("test"); but I get "Error executing function", so how can I print a message for everyone?

      you can probably use "getentbynum(entRef)"
      I DID NOT CHECK IT AND DO NOT KNOW IF IT WILL WORK.
      (in COD4 getentbynum/loops/isplayer worked fine)

      for(int entRef = 0; entRef < 18; entRef++) //max entRef for player = 17
      {
          if(level.isplayer(level.getentbynum(entRef)))
          {
              level.getentbynum(entRef).println("test");
          }
      }
      
      shanzundefined 1 Reply Last reply
      0
      • shanzundefined Offline
        shanzundefined Offline
        shanz
        wrote on last edited by
        #3

        That makes sense, I'll let you know if it works!

        1 Reply Last reply
        0
        • S3VDITOundefined S3VDITO

          shanz said in iPrintLn for everyone?:

          I've already tried level.println("test"); but I get "Error executing function", so how can I print a message for everyone?

          you can probably use "getentbynum(entRef)"
          I DID NOT CHECK IT AND DO NOT KNOW IF IT WILL WORK.
          (in COD4 getentbynum/loops/isplayer worked fine)

          for(int entRef = 0; entRef < 18; entRef++) //max entRef for player = 17
          {
              if(level.isplayer(level.getentbynum(entRef)))
              {
                  level.getentbynum(entRef).println("test");
              }
          }
          
          shanzundefined Offline
          shanzundefined Offline
          shanz
          wrote on last edited by
          #4

          S3VDITO There were several errors, but thanks for the idea! Now it works.

          1 Reply Last reply
          0
          • xensikundefined Offline
            xensikundefined Offline
            xensik
            wrote on last edited by
            #5
            gsc.iprintln("hello boyz");
            
            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