The Dink Network

Reply to Re: Variable question

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
January 29th 2008, 02:37 AM
fairy.gif
Someone
Peasant He/Him Australia
 
It's very possible to get them back to strings. You just need to display one character at a time. So it's easier with a font where very character is the same width.

Make an exteral("something","say_str_xy",var,x,y) type function like this:

int &x = &arg2;
int &ntimes = 0;

loop:
//extract next letter from &arg1
if (&letter == 0) say_xy("A",&x,&arg3);
//etc
&x += <width of chars>;
&ntimes += 1;
if (&ntimes <= 6)
goto loop;

Because you can't pass strings in an external() nor determine the number of characters in a string you need to work out the x and y's if you wanted to have text on each side of the string (e.g. "Hi there, &name! How are you? is possible with an say_xy for "Hi there, " and one for "! How are you?" but you need to calculate the x/y yourself which isn't too hard but annoying if you want to do it a lot)