Author Topic: How do I prompt a user for text input?  (Read 478 times)

How do I prompt a user for text input?  For example,

printf("Enter a number please. ");
scanf("%lf",&variable);

In C would give a user a prompt for text input and then allow the user to enter data which could be used by the program.  Is there an equivalent of the "scanf()" function in Torque?

No

You have to send the user a message then get them to call a function to get their response.

Alternatively you could send them a message over the chat and take out the next thing they say.