|
|
Register •
FAQ
• Search • Login
|
| Author |
Message |
|
Parrothead
Commander
Joined: Wed May 03, 2006 2:00 am Posts: 1722 Location: USA
|
listActiveScripts creates an array with the size variable name
listActiveScripts $scripts
setvar $idx 1
while ($idx <= $scripts)
lowercase $scripts[$idx]
if ($scripts[$idx] = "somescript.ts")
do something
end
add $idx 1
end
---------------------------
getScriptVersion returns an error code but have not done anything with it.
_________________ Coconut Telegraph (ICQ)#586137616 Team Speak3@ 220.244.125.70:9987 Founding Member -=[Team Kraaken]=- Winner of Gridwars 2010 - Ka Pla
 Jesus wounldn't Subspace Crawl
|
| Sat Jan 27, 2007 1:26 pm |
|
 |
|
RexxCrow
Captain
Joined: Sat Jun 18, 2005 2:00 am Posts: 2214 Location: USA
|
Ok, I modified them both to fit that context, getscriptversion does not work either way I attempted, being that using in this fashion causes the script to simpy crash and for listactivescripts it only works in the way P-head described; if you attempt a dynamic array it will crash the script, so you either have to build your array as you go or add to a known variable through all active scripts for later comparison.
_________________ Your reliance upon subjective IRM's, subjugates you through utter omission, obfuscation, and distortion of fact! Don't mess with me, I will 26 U.S.C. § 7212(a) your IRS!
|
| Sat Jan 27, 2007 2:07 pm |
|
 |
|
Singularity
Veteran Op
Joined: Thu Jun 02, 2005 2:00 am Posts: 5558 Location: USA
|
Yes most of the arrays returned by twx are static, if you attempt to modify them bad things will occur. This is done because static arrays are an order of magnitude faster than dynamic arrays. It was felt that the few times a dynamic array was needed wasn't worth the sacrifice in speed, and that the simple process of copying the array was not too much of a workaround for the situation.
_________________ May the unholy fires of corbomite ignite deep within the depths of your soul...
1. TWGS server @ twgs.navhaz.com 2. The NavHaz Junction - Tradewars 2002 Scripts, Resources and Downloads 3. Open IRC chat @ irc.freenode.net:6667 #twchan 4. Parrothead wrote: Jesus wouldn't Subspace Crawl.
*** SG memorial donations via paypal to: dpocky68@booinc.com
|
| Sat Jan 27, 2007 3:05 pm |
|
 |
|
RexxCrow
Captain
Joined: Sat Jun 18, 2005 2:00 am Posts: 2214 Location: USA
|
Darn Sing, you just make that sound so freaking scary! If I were a character in Brokeback Mountain I would be shaking in my boots right about now... ummm, perhaps that was a not so good analogy... never mind... LMAO
_________________ Your reliance upon subjective IRM's, subjugates you through utter omission, obfuscation, and distortion of fact! Don't mess with me, I will 26 U.S.C. § 7212(a) your IRS!
|
| Sat Jan 27, 2007 3:28 pm |
|
 |
|
Who is online |
Users browsing this forum: No registered users and 14 guests |
|
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 post attachments in this forum
|
|