Results 1 to 4 of 4
  1. #1
    Caesar1928's Avatar
    Join Date
    Oct 2015
    Gender
    male
    Posts
    45
    Reputation
    10
    Thanks
    14

    Exclamation Multiple words in an argument won't work in K Relay packet!

    This is kind of hard for me to explain but look
    Code:
                PlayerTextPacket pkt = (PlayerTextPacket)Packet.Create(PacketType.PLAYERTEXT);
                pkt.Text = string.Join(" ", args[0]);
                int length = int.Parse(args[1]);            
                for (int i = 0; i < length; i++)
                  {
                    client.SendToServer(pkt);
                  }
    this code works fine but only with 1 word for ex if i did /test word 5 it would send the word 5 times but if i did /test word word 5 it wouldn't work because there is more than 1 world. Please help if you can (:

  2. #2
    Modular's Avatar
    Join Date
    Nov 2015
    Gender
    male
    Posts
    25
    Reputation
    10
    Thanks
    5
    Quote Originally Posted by Caesar1928 View Post
    This is kind of hard for me to explain but look
    Code:
                PlayerTextPacket pkt = (PlayerTextPacket)Packet.Create(PacketType.PLAYERTEXT);
                pkt.Text = string.Join(" ", args[0]);
                int length = int.Parse(args[1]);            
                for (int i = 0; i < length; i++)
                  {
                    client.SendToServer(pkt);
                  }
    this code works fine but only with 1 word for ex if i did /test word 5 it would send the word 5 times but if i did /test word word 5 it wouldn't work because there is more than 1 world. Please help if you can (:
    In your example and code, this would be because you are casting "word" to an int.

  3. #3
    059's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Location
    California
    Posts
    3,312
    Reputation
    700
    Thanks
    92,771
    Try putting the quantity first, then the word + rest of words.

    /test 5 word word

    Then just read quantity first, and then loop the length of args.
    My Vouches
    Having an issue with RotMG? Check for the solution here.


    Need Realm items? Come to RealmStock!

    Accepting PayPal - Bitcoin - Giftcards
    Selling ST Sets, Class Top Sets, Life Pots, and much more!


    Find it here: MPGH Sales Thread

  4. #4
    Caesar1928's Avatar
    Join Date
    Oct 2015
    Gender
    male
    Posts
    45
    Reputation
    10
    Thanks
    14
    will do //10 chars

Similar Threads

  1. Why an087535's hack won't work for some people
    By mastergeorge in forum Combat Arms Hacks & Cheats
    Replies: 27
    Last Post: 06-10-2009, 03:27 PM
  2. it won't work!!!
    By garrafan9 in forum Combat Arms Hacks & Cheats
    Replies: 2
    Last Post: 02-27-2009, 08:29 PM
  3. [Notice] Nades won't work with ZeaS D3d Hack
    By Liem in forum Operation 7 General
    Replies: 2
    Last Post: 01-19-2009, 11:02 AM
  4. My Anti-kick Won't WORK!
    By superHackz in forum Visual Basic Programming
    Replies: 5
    Last Post: 05-18-2008, 09:20 AM
  5. How? Won't work... :(
    By bj123 in forum Gunz General
    Replies: 10
    Last Post: 02-02-2008, 12:12 PM