displaying variables

Started by Shadow, Mon 19/04/2004 19:26:20

Previous topic - Next topic

Shadow

Is there a way to display variables not as speech? I mean only as text like a console. Because with DisplaySpeechBackground I can't display variables and the normal DisplaySpeech is not good because the game stops.

strazer

QuoteDisplaySpeechBackground I can't display variables

What do you mean?

string buffer;
StrCopy(buffer,"Hello world.");
DisplaySpeechBackground(EGO,buffer);

works for me.
You can display numbers with

int numba=47;
string buffer;
StrFormat(buffer,"The number is %d",numba);
DisplaySpeechBackground(EGO,buffer);

Kweepa

You probably want to create a GUI with a label, and then in repeatedly_execute_always, use SetLabelText to update the GUI.
Still waiting for Purity of the Surf II

Shadow

hey, cool. thank you guys  ;D

SMF spam blocked by CleanTalk