
05-01-2011, 12:16 AM
|
|
team canada
|
 |
Join Date: Jul 2004
Location: Canada
Posts: 5,200
|
|
Quote:
Originally Posted by papajchris
Thanks that link had great examples, final question and i think i got this part understood.
Could you do this
PHP Code:
for player.colors[ BodyParts.index(BodyParts)] = tokens[1];
instead of
PHP Code:
for (i: BodyParts) player.colors[ BodyParts.index( i)] = tokens[1];
|
no.
for (element: array) { } |
|
|
|