Results 1 to 6 of 6
  1. #1
    x2Sorcer's Avatar
    Join Date
    Oct 2012
    Gender
    male
    Posts
    55
    Reputation
    10
    Thanks
    334
    My Mood
    Bored

    Setting Clantag and Title

    Hi everybody,

    got a little problem at the moment. Tried to write my first Clantag + Title changer, but i get stuck. Whenever i set my new Title and it is shorter than the old one, the letters from the old one behind the new one are still there. One Example for this:

    1. Set Title "test" ---> Title: test
    2. Set Title "mpghrules" ---> Title: mpghrules
    3. Set Title "xy" ----> Title: xyghrules

    The same with the clantag. Anybody can explain me how to fix this? I think i have to clear the String before i re-fill it, but how?

    Thanks in advance
    x2Sorcer

  2. #2
    Jorndel's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Norway
    Posts
    8,674
    Reputation
    905
    Thanks
    18,541
    My Mood
    Angelic
    Quote Originally Posted by x2Sorcer View Post
    Hi everybody,

    got a little problem at the moment. Tried to write my first Clantag + Title changer, but i get stuck. Whenever i set my new Title and it is shorter than the old one, the letters from the old one behind the new one are still there. One Example for this:

    1. Set Title "test" ---> Title: test
    2. Set Title "mpghrules" ---> Title: mpghrules
    3. Set Title "xy" ----> Title: xyghrules

    The same with the clantag. Anybody can explain me how to fix this? I think i have to clear the String before i re-fill it, but how?

    Thanks in advance
    x2Sorcer
    Ensure you clear the old values before you write the new ones.
    (Or just set a max size to write)

     
    Contributor 01.27.2012 - N/A
    Donator 07-17-2012 - Current
    Editor/Manager 12-16-12 - N/A
    Minion 01-10-2013 - 07.17.13
    Former Staff 09-20-2012 - 01-10-2013 / 07-17-2013 - Current
    Cocksucker 20-04-2013 - N/A

  3. #3
    x2Sorcer's Avatar
    Join Date
    Oct 2012
    Gender
    male
    Posts
    55
    Reputation
    10
    Thanks
    334
    My Mood
    Bored
    Yeah, just tried that, but how do i clear them exactly? Tried to set them to "", but that didnt work.

  4. #4
          ( ° ͜ʖ͡°)╭∩╮
    Former Staff
    MarkHC's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Location
    127.0.0.1
    Posts
    2,751
    Reputation
    66
    Thanks
    14,310
    My Mood
    Angelic
    You can write spaces or a null byte (zero) at the end of your string if it is shorter than the max.


    CoD Minion from 09/19/2012 to 01/10/2013

  5. #5
    x2Sorcer's Avatar
    Join Date
    Oct 2012
    Gender
    male
    Posts
    55
    Reputation
    10
    Thanks
    334
    My Mood
    Bored
    Ah okay, thank you very much
    But spaces only work on the Players name, because spaces at the end of the clantag or title look weird

    So I have to use the zero byte thingy I think...

  6. #6
    Kenshin13's Avatar
    Join Date
    May 2011
    Gender
    male
    Location
    Cloud 9
    Posts
    3,473
    Reputation
    564
    Thanks
    5,882
    My Mood
    Psychedelic
    Define a null array (7 Bytes Max) And write it to the address then add the clan tag.
    Code:
    byte[] Null7 = new byte[7];
    
    WriteBytes(Address, Null7);
    
    WriteString(Address, "MPGH");

  7. The Following User Says Thank You to Kenshin13 For This Useful Post:

    x2Sorcer (11-20-2012)

Similar Threads

  1. [SOLVED] Emblems and Titles Unlocker Wanted?
    By Orbe in forum Call of Duty Modern Warfare 2 Help
    Replies: 6
    Last Post: 06-17-2010, 01:03 AM
  2. How do you set up and use Dave's hack?
    By quotebox in forum CrossFire Help
    Replies: 2
    Last Post: 05-23-2010, 08:23 PM
  3. Reseting callsign's and titles.
    By viesty in forum Call of Duty Modern Warfare 2 Help
    Replies: 2
    Last Post: 03-26-2010, 01:11 PM
  4. Remove prestige emblem and title? help
    By Aquilani in forum Call of Duty Modern Warfare 2 Help
    Replies: 0
    Last Post: 02-07-2010, 09:15 AM
  5. A Emblem And Title Unlocker
    By elav8 in forum Call of Duty Modern Warfare 2 Help
    Replies: 3
    Last Post: 12-21-2009, 06:37 AM