ID:147208
 
mob
Login()
usr.icon_state = input("Team/Driver") in list ("Sauber: Felipe Massa","Sauber: Giancarlo Fisichella","Toyota: Olivier Panis","Toyota: Cristiano Da Matta","Jordan: Nick Heidfeld","Jordan: Giorgio Pantano","BAR: Jenson Button","BAR: Takuma Sato","Ferrari: Micheal Schumacher","Ferrari: Rubbuns Barricello","Williams: Juan Pablo Montoya","Williams: Ralf Schumacher","Jaguar: Mark Webber","Jaguar: Cristian Klien","Mclaren: Kimi Raikkonen","Mclaren: David Coulthard","Minardi: Gianmaria Bruni","Minardi: Zsolt Baumgartner","Renault: Fernando Alonso","Renault: Jarno Trulli")
usr.Move(locate(27,3,1))

thease are the names that the player has to cheose from i want it so when someone picks the name there name will change to that

E.G Fred = Sauber: Felipe Massa so his name changes to Sauber: Felipe Massa in game instead of when he talks saying this

Fred says:hi
i want it to says
Sauber: Felipe Massa says:hi

so u understand me
Make a new variable and let the input determine the results of the variable. Then set the player's name according to equal the variable.

<code>mob/Login() var/choice = input("Team/Driver") in list("Bunch of names") src.name = choice src.icon_state = choice</code>
In response to Foomer (#1)
and then learn how to spell the word these.
In response to DeathAwaitsU (#2)
DAU, this is Code Problems. If you can't contribute something useful, don't post.*

*<font color=#C8C8C8 size=1>Translation: Shut the hell up.</font>
In response to Foomer (#3)
it is useful because most people just dont help when they see spelling errors of this level.
In response to DeathAwaitsU (#4)
is the a location thing to go with that because when i load it up its a black screen
In response to Jaydude (#5)
my mate helped me sort it. It should look like this

mob/Login()
var/choice = input("Team/Driver") in list("Sauber: Felipe Massa","Sauber: Giancarlo Fisichella","Toyota: Olivier Panis","Toyota: Cristiano Da Matta","Jordan: Nick Heidfeld","Jordan: Giorgio Pantano","BAR: Jenson Button","BAR: Takuma Sato","Ferrari: Micheal Schumacher","Ferrari: Rubbuns Barricello","Williams: Juan Pablo Montoya","Williams: Ralf Schumacher","Jaguar: Mark Webber","Jaguar: Cristian Klien","Mclaren: Kimi Raikkonen","Mclaren: David Coulthard","Minardi: Gianmaria Bruni","Minardi: Zsolt Baumgartner","Renault: Fernando Alonso","Renault: Jarno Trulli")
src.loc=locate(27,3,1)



src.name = choice
src.icon_state = choice

thanks for all your help
In response to Jaydude (#6)
here's another tip:

when showing code do it in dm tags like so:

mob
Login()
while(1)
src << "Haha it sucks to be you"
alert ("Haha it sucks to be you")
sleep(5)


to do that just put your code between these tags:

(dm)
(/dm)

but change () to <>
In response to DeathAwaitsU (#7)
For future reference, &lt; and &gt; (less than and greater than) let you show < and > without it becoming an HTML tag.
In response to Garthor (#8)
i dont understand
In response to Jaydude (#9)
<dm>
*put code here*
</dm>
In response to Garthor (#8)
Ok thanks a lot but one question:

how did you show the word "& lt" + "& gt" without it turning into <>?
In response to DeathAwaitsU (#11)
Hit the "Reply With Quote" button, but don't reply. It'll show you how.
In response to DeathAwaitsU (#11)
&amp;lt;
In response to Garthor (#13)
thanks.