Thread: [parseincomingpackets] ids not words.[rep++]

Results 1 to 2 of 2
  1. #1 [parseincomingpackets] ids not words.[rep++] 
    Member [parseincomingpackets] ids not words.[rep++] Market Banned

    Robin Spud's Avatar
    Join Date
    Aug 2008
    Age
    31
    Posts
    2,338
    Thanks given
    46
    Thanks received
    73
    Rep Power
    1068
    hey im trying to add a like password system. i have this so far
    Code:
                case 60:
                long chat = inStream.readQWord();
                String clan = "";
    Send("YouTyped:"+chat);
    break;
    but when i type chat its sendmessage 19185 or sommet

    heres my command

    Code:
    	if (cmd.equals("chat")){
                 c.outStream.createFrame(187);
                c.flushOutStream();
                    }
    ILY Stewie.
    Reply With Quote  
     

  2. #2  
    Blair'
    Guest
    Code:
    	if (cmd.startsWith("chat")){
                 c.outStream.createFrame(187);
                c.flushOutStream();
                String Pswrd = cmd.substring(5);
                 chat = Pswrd;
              Send("YouTyped: "+chat);
                    }
    Have no idea if that works, & change your method names to how you need to. I just guessed.
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •