Jump to content

Remove extra space when using command ingame

Go to solution Solved by Abel(Tiger),

Recommended Posts

  • Silver

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!



Edited by ReFresh

I'll be always helpful! 👊 

Link to comment
Share on other sites

  • Silver

@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

  • Bronze
  • Solution

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:

	if(strlen(argument) < 2)
	BroadcastNotice(argument + 1);


  • Love 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Similar Content

  • Activity

    1. 2

      acces root denied

    2. 7

      Acce system

    3. 5

      Transmutation Reversal - bug

    4. 0

      How to compile Metin2 .py script to .pyc

    5. 2

      acces root denied

    6. 2

      VPS Choice

  • Recently Browsing

    • No registered users viewing this page.
  • Create New...

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.