USERNAME:
PASSWORD:
Save Info!
Logging in…
This topic is 1 page long.
[ Profile | Posts | Contact ]
Posted at: 3/29/06 04:09 PM
Sign-Up: 12/24/04
Posts: 1,562
Hello there, im trying to add a small function to my game, can anyone help me out?
_root.namez=new Array("Pad", "Elfred", "Fonboos");
How do I make it so that if _root.playersname ! = "", then _root.playersname = a random name from the array.
Can anyone help me out?
Thanks!
Posted at: 3/29/06 04:18 PM
Sign-Up: 03/08/05
Posts: 945
_root.names = new Array("Bob", "Joe", "Jason", "Fred", "Eric"); if (_root.playerName == null) { _root.playerName = names[random(5)]; }
Posted at: 3/29/06 04:31 PM
Thank you very much Sir.
All times are Eastern Standard Time (GMT -5) | Current Time: 01:10 PM
<< Back