Checking the beginning of strings...
Moderator: InsideQC Admins
3 posts
• Page 1 of 1
Checking the beginning of strings...
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.
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.
- Morkai
- Posts: 2
- Joined: Sat Mar 29, 2008 3:08 pm
I'm glad you find out the answer, Morkai
I'm afraid I personally wouldn't have been of much help
I'm afraid I personally wouldn't have been of much help
Neurotic Conversions - New location: Update your bookmarks!
-

CocoT - Posts: 695
- Joined: Tue Dec 14, 2004 5:39 pm
- Location: Belly-Gum
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: Bing [Bot] and 1 guest