View Single Post
  #3  
Old 02-09-2009, 05:43 PM
thatdwarf thatdwarf is offline
Former UN Dev Admin
Join Date: Nov 2005
Posts: 42
thatdwarf is on a distinguished road
aha, a great alternative, thanks Chompy

Now how would I alter that code to accomodate prefixes?
Instead of having to go through and type in every weapon that isnt allowed (and there are a lot of them), just typing
in a prefix, say *, or -, and filtering out all weapons who's names begin with that prefix

I've tried:
a loop through the array, and then doing temp.wep.name.starts(temp.ban), no avail
using a substring(0, #).trim(), no avail

Last edited by thatdwarf; 02-09-2009 at 06:03 PM..
Reply With Quote