Forum

Combining multiple strings into one string

Discuss programming in the QuakeC language.

Moderator: InsideQC Admins

Combining multiple strings into one string

Postby leileilol » Tue Feb 19, 2008 4:06 pm

How do I go about doing this without any engine stuff?
i should not be here
leileilol
 
Posts: 2783
Joined: Fri Oct 15, 2004 3:23 am

Postby Willem » Tue Feb 19, 2008 4:16 pm

I don't think it's possible. All strings in QuakeC, AFAIK, are const and can't be modified, concatenated, etc.
Willem
 
Posts: 73
Joined: Wed Jan 23, 2008 10:58 am

Postby Preach » Tue Feb 19, 2008 4:41 pm

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...
Preach
 
Posts: 122
Joined: Thu Nov 25, 2004 7:20 pm

Postby leileilol » Tue Feb 19, 2008 5:10 pm

I want to do this for a WriteString
i should not be here
leileilol
 
Posts: 2783
Joined: Fri Oct 15, 2004 3:23 am

Postby Urre » Wed Feb 20, 2008 9:02 am

Spike already answered this for you in #qc
I was once a Quake modder
User avatar
Urre
 
Posts: 1109
Joined: Fri Nov 05, 2004 2:36 am
Location: Moon

Postby leileilol » Wed Feb 20, 2008 7:37 pm

what if others want reference and what if I forget
i should not be here
leileilol
 
Posts: 2783
Joined: Fri Oct 15, 2004 3:23 am

Postby Urre » Thu Feb 21, 2008 7:56 am

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'.
I was once a Quake modder
User avatar
Urre
 
Posts: 1109
Joined: Fri Nov 05, 2004 2:36 am
Location: Moon


Return to QuakeC Programming

Who is online

Users browsing this forum: Bing [Bot] and 1 guest