View Single Post
  #9  
Old 06-19-2006, 09:40 PM
Yen Yen is offline
Banned
Yen's Avatar
Join Date: Oct 2005
Location: Nova Scotia, Canada
Posts: 1,085
Yen is an unknown quantity at this point
Send a message via AIM to Yen Send a message via MSN to Yen
If the strings you want to obtain follow a pattern (i.e. clientr.stat_<whatever>), you can use getstringkeys(start).

getstringkeys() returns the suffix of all variables beginning with 'start'.
For example, if I have:
clientr.zomg_hp = 3
clientr.zomg_rawr = lawl
clientr.zomg_pi = 3.14something
temp.keys = getstringkeys("clientr.zomg_");

temp.keys will be an array containing the strings {hp,rawr,pi}

It's really useful.
Reply With Quote