PtokaX forum

Development Section => Your Developing Problems => Topic started by: kepp on 31 October, 2003, 23:51:47

Title: Center text from SendToAll
Post by: kepp on 31 October, 2003, 23:51:47
is it possible to center the text you write in
SendToAll("text")
to the middle in main?

If so, how? :)
Thanks
Title:
Post by: Optimus on 01 November, 2003, 00:22:40
well what you can do is use TABS looks like this: \t
you can use as many as you like... 1 2 3 \t\t\t

Example:

---
SendToAll("text")
---

Will be

---
SendToAll("\t text")
---
Title:
Post by: kepp on 01 November, 2003, 00:35:12
is it something im doing wrong?

SendToAll(\t\t\t\t\t\t\t "_-*_-*_-*_-*_-["..frmHub:GetHubName().."]-_*-_*-_*-_*-_")

Output:
[01:37] _-*_-*_-*_-*_-[klsdfjsgmdflgm]-_*-_*-_*-_*-_

With tabs before "text" i'll get it like this:

[01:39]
 _-*_-*_-*_-*_-[klsdfjsgmdflgm]-_*-_*-_*-_*-_
Title:
Post by: Optimus on 01 November, 2003, 01:00:42
SendToAll("\t\t\t\t\t\t\t _-*_-*_-*_-*_-["..frmHub:GetHubName().."]-_*-_*-_*-_*-_")

try that 1^^ ;)
Title:
Post by: kepp on 01 November, 2003, 01:02:23
Thank you :)
Stupid misstake by me,
reason why it ended up on another line was because i used to Many \t
Tabs
Title:
Post by: Optimus on 01 November, 2003, 01:12:09
yups your welcome ;)