View previous topic :: View next topic |
Author |
Message |
leileilol

Joined: 15 Oct 2004 Posts: 1321
|
Posted: Tue Feb 19, 2008 4:06 pm Post subject: Combining multiple strings into one string |
|
|
How do I go about doing this without any engine stuff? _________________
 |
|
Back to top |
|
 |
Willem
Joined: 23 Jan 2008 Posts: 73
|
Posted: Tue Feb 19, 2008 4:16 pm Post subject: |
|
|
I don't think it's possible. All strings in QuakeC, AFAIK, are const and can't be modified, concatenated, etc. _________________ www.wantonhubris.com |
|
Back to top |
|
 |
Preach
Joined: 25 Nov 2004 Posts: 122
|
Posted: Tue Feb 19, 2008 4:41 pm Post subject: |
|
|
The best you can do is the overloadable functions like centerprint and dprint. I was saddened to learn that the same trick doesn't work for stuffcmd and localcmd... |
|
Back to top |
|
 |
leileilol

Joined: 15 Oct 2004 Posts: 1321
|
Posted: Tue Feb 19, 2008 5:10 pm Post subject: |
|
|
I want to do this for a WriteString _________________
 |
|
Back to top |
|
 |
Urre

Joined: 05 Nov 2004 Posts: 1073 Location: Sweden
|
Posted: Wed Feb 20, 2008 9:02 am Post subject: |
|
|
Spike already answered this for you in #qc _________________ Look out for Twigboy |
|
Back to top |
|
 |
leileilol

Joined: 15 Oct 2004 Posts: 1321
|
Posted: Wed Feb 20, 2008 7:37 pm Post subject: |
|
|
what if others want reference and what if I forget _________________
 |
|
Back to top |
|
 |
Urre

Joined: 05 Nov 2004 Posts: 1073 Location: Sweden
|
Posted: Thu Feb 21, 2008 7:56 am Post subject: |
|
|
In case of the first, you could repeat what he said, instead of asking again. In case of the second, he said something like 'do it one character at a time'. _________________ Look out for Twigboy |
|
Back to top |
|
 |
|