Raised This Month: $51 Target: $400
 12% 

2 lines in center text?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
BraveFox
AlliedModders Donor
Join Date: May 2015
Location: Israel
Old 04-09-2016 , 14:31   2 lines in center text?
Reply With Quote #1

Hey,
Is there anyway to do 2 lines in center text?
thx.
__________________
Contact Me:
Steam: NoyB
Discord: Noy#9999
Taking Private Requests
BraveFox is offline
Kailo
Senior Member
Join Date: Sep 2014
Location: Moscow, Russia
Old 04-09-2016 , 14:51   Re: 2 lines in center text?
Reply With Quote #2

PHP Code:
PrintCenterText(client"This 1st line\nThis 2nd line"); 
Kailo is offline
BraveFox
AlliedModders Donor
Join Date: May 2015
Location: Israel
Old 04-09-2016 , 15:15   Re: 2 lines in center text?
Reply With Quote #3

Quote:
Originally Posted by Kailo View Post
PHP Code:
PrintCenterText(client"This 1st line\nThis 2nd line"); 
I am using PrintCenterTextAll and I tried it there and it doesn't work.
Edit: I didn't type it good I did /n not \n
thx!
__________________
Contact Me:
Steam: NoyB
Discord: Noy#9999
Taking Private Requests

Last edited by BraveFox; 04-09-2016 at 15:18.
BraveFox is offline
Kailo
Senior Member
Join Date: Sep 2014
Location: Moscow, Russia
Old 04-09-2016 , 15:20   Re: 2 lines in center text?
Reply With Quote #4

Logical question: What game? (I tested this in CS:GO before write my answer and all had worked good).

Update: ok, easy search in your post history — "my tf2 server".

Update 2: (may be will helpful)
Quote:
Originally Posted by Theme97 View Post
If you want to use newlines, you can use either \n or | as a newline delimiter.
P.S. Also that OS-based server you using: Windows or Linux? Or may be problem in encoding of source file?

Last edited by Kailo; 04-09-2016 at 15:29.
Kailo is offline
BraveFox
AlliedModders Donor
Join Date: May 2015
Location: Israel
Old 04-10-2016 , 08:47   Re: 2 lines in center text?
Reply With Quote #5

Quote:
Originally Posted by Kailo View Post
Logical question: What game? (I tested this in CS:GO before write my answer and all had worked good).

Update: ok, easy search in your post history — "my tf2 server".

Update 2: (may be will helpful)


P.S. Also that OS-based server you using: Windows or Linux? Or may be problem in encoding of source file?
I am using Windows and I am compiling in http://spider.limetech.org/ when I did /n it didn't work and when I did \n it worked.
__________________
Contact Me:
Steam: NoyB
Discord: Noy#9999
Taking Private Requests
BraveFox is offline
Kailo
Senior Member
Join Date: Sep 2014
Location: Moscow, Russia
Old 04-11-2016 , 04:33   Re: 2 lines in center text?
Reply With Quote #6

When ask for help, give code for more productive help.

Also for understand what wrong with /n read https://en.wikipedia.org/wiki/Escape_character
Kailo is offline
Reply



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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:56.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode