Jump to content
×
×
  • Create New...
  • 0

Remove extra space when using command ingame


ReFresh

Question

  • Premium

Hello guys,

is here someone who knows how can I remove extra space between command and value? When I use: /n, /b, etc. written text is moved to the right side by one space because you must do the space between command and value. Example: /n Hello world. As you can see between /n and Hello world  is one extra space which is moving the text in game chat to the right side. Quests don't have this problem because commands are called directly without any extra spaces.

I will be glad for your answers!

Sincerely,

ReFresh

Edited by ReFresh

I'll be always helpful! 👊 

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0
  • Moon

It get's random stuff from the memory but because it's a gm command don't stress about it. But if you really want that gone try a lenght check:

ACMD(do_notice)
{
	if(strlen(argument) < 2)
		return;
	
	BroadcastNotice(argument + 1);
}

 

  • Love 1
Link to comment
Share on other sites

  • 0
  • Premium

@Abel(Tiger) Thanks so much for answer! It works.

On 8/18/2021 at 12:02 PM, Abel(Tiger) said:

Be careful though, that +1 should not be done without a size check.

What does it mean? I don't understand about what you're talking.

Oh, I see now something what wasn't there before when I wrote the command without a value, is that some problem or?

Edited by ReFresh

I'll be always helpful! 👊 

Link to comment
Share on other sites

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.


  • Metin2 Dev Github
  • Activity

    1. 6

      Owsap Productions

    2. 11

      BUG SAFEBOX disappear stacks ..

    3. 2

      Error no member named SetcCreateTime in Citem

    4. 2

      Need some help with effect slot on pickup system

    5. 1

      GF Pet system "x" level / percent

    6. 1

      disable quest esc

    7. 2

      Navicat Premium 16.1.3 x64

    8. 2

      Join the Metin2 Dev team

    9. 2

      Error no member named SetcCreateTime in Citem

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.