Programming G-Force: Making an array of strings

Discussion forum for G-Force users

Moderators: BTT, andy55, b.dwall, juxtiphi

Post Reply
User avatar
ComputerSherpa
Posts: 3
Joined: Sat Jan 06, 2007 8:38 pm

Programming G-Force: Making an array of strings

Post by ComputerSherpa »

Hello! I'm slugging away on this project, and I'm stuck again. I figure that I need to define an array of text strings, each element of which will be the path to one of the images I need. In C++, this would be easy, but C doesn't have an actual string class--if I remember from my programming classes, if you want a string in C you have to either #include <string.h> or make a character array. I notice, however, that G-Force seems to work with strings just fine. Is this part of G-Force's undocumented scripting code? If so, how do I access it? What's the syntax for defining an array of strings in G-Force?
Looks can be bought. Style one must possess.

Post Reply