var/list1 = list()
if(src.administrator)
list1 += "game admin"
list1 += "police"
Is it possible to optimize list1 += "game admin" and "police" into one line?
ID:163885
Jul 30 2007, 2:49 pm
|
|
I was just wondering if it were possible to optimize the list+="". Example:
var/list1 = list() Is it possible to optimize list1 += "game admin" and "police" into one line? |
In response to Kaiochao2536
|
|
It's a list...not a string..so
list1.Add("police","game admin") |
In response to Kazekage
|
|
I'm pretty sure both ways work :|
|
In response to Kaiochao2536
|
|
It does
|
Uhh... Edited.
I wonder if that changes much <.<
It's magic!