Inside3D!
     

Checking the beginning of strings...

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



Joined: 29 Mar 2008
Posts: 2

PostPosted: Sat Mar 29, 2008 3:24 pm    Post subject: Checking the beginning of strings... Reply with quote

Hi Everyone, (I'm new...ish)

Was playing the other day with DP and QuakeC.

Is there a way to check the beginning part of a string...?
(was trying to implement footsteps specific to texture)

eg. if the string has "METAL_" or "WOOD_" at the beginning.

I know I could do a check against all the possible texture names I have but I was trying to cut out a lot of code writing!

Thanks a bunch. Very Happy
Back to top
View user's profile Send private message
Morkai



Joined: 29 Mar 2008
Posts: 2

PostPosted: Sat Mar 29, 2008 4:37 pm    Post subject: Reply with quote

Sussed it...

strncasecmp etc. in the FTE_STRINGS bit of dpextensions.QC

No worries!
Back to top
View user's profile Send private message
CocoT



Joined: 14 Dec 2004
Posts: 599
Location: Belly-Gum

PostPosted: Tue Apr 01, 2008 3:46 am    Post subject: Reply with quote

I'm glad you find out the answer, Morkai Smile
I'm afraid I personally wouldn't have been of much help Razz
_________________
http://www.planetcocot.net/
Back to top
View user's profile Send private message Send e-mail 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