Help with creating search

Started by am, Fri 13/06/2003 14:55:18

Previous topic - Next topic

am

I'm working on an ecyclopedia-like feature within the game (it'll be divided into several sections, each with a few subjects).
I'm thinking to implement it much like the help in the demo game - have one screen (screen instead of a GUI) where the data is displayed, and the data itself is changed depending on a global int when entering the screen.

I would like to implement a "search" function to display the name of all titles containing the word searched for, but I'm cluless as to how to do that.
any ideas?

Pumaman

Well, it depends how you implement your encyclopedia, really. Some sort of StrInString command could be helpful here though so I'll look into it.

Dorcan

#2
I juste have made a function FindStr(str1, str2).
It's case insensitive.

http://host.deluxnetwork.com/~dorcan/script.php?langue=en&id=5

am

Thanks, it loks like it'll work.

SMF spam blocked by CleanTalk