Inside3D!
     

Combining multiple strings into one string

 
Post new topic   Reply to topic    Inside3d Forums Forum Index -> QuakeC Programming
View previous topic :: View next topic  
Author Message
leileilol



Joined: 15 Oct 2004
Posts: 1321

PostPosted: Tue Feb 19, 2008 4:06 pm    Post subject: Combining multiple strings into one string Reply with quote

How do I go about doing this without any engine stuff?
_________________
Back to top
View user's profile Send private message
Willem



Joined: 23 Jan 2008
Posts: 73

PostPosted: Tue Feb 19, 2008 4:16 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Preach



Joined: 25 Nov 2004
Posts: 122

PostPosted: Tue Feb 19, 2008 4:41 pm    Post subject: Reply with quote

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
View user's profile Send private message
leileilol



Joined: 15 Oct 2004
Posts: 1321

PostPosted: Tue Feb 19, 2008 5:10 pm    Post subject: Reply with quote

I want to do this for a WriteString
_________________
Back to top
View user's profile Send private message
Urre



Joined: 05 Nov 2004
Posts: 1073
Location: Sweden

PostPosted: Wed Feb 20, 2008 9:02 am    Post subject: Reply with quote

Spike already answered this for you in #qc
_________________
Look out for Twigboy
Back to top
View user's profile Send private message Visit poster's website
leileilol



Joined: 15 Oct 2004
Posts: 1321

PostPosted: Wed Feb 20, 2008 7:37 pm    Post subject: Reply with quote

what if others want reference and what if I forget
_________________
Back to top
View user's profile Send private message
Urre



Joined: 05 Nov 2004
Posts: 1073
Location: Sweden

PostPosted: Thu Feb 21, 2008 7:56 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Inside3d Forums Forum Index -> QuakeC Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2004 phpBB Group