Hi staff

, I managed to settle in and got what I wanted, but is a simple program ,it is for me to learn how to program and how things in 3DGS, i thank for attention and hope help in following questions, thanks
follows the code:-
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////
#include <acknex.h>
#include <default.c>
////////////////////////////////////////////////////////////////////
var cursor_pos;
STRING* my_str = "#20"; // allow up to 20 characters
PANEL* my_pan =
{
pos_x = 0;
pos_y = 0;
layer = 0;
flags = VISIBLE;
}
TEXT* my_txt =
{
pos_x = 100;
pos_y = 250;
layer = 1;
string (my_str);
flags = VISIBLE;
}
function edit_text()
{
str_cpy (my_str, "");
{
inkey(my_str);
wait (1);
}
}
function track_cursor()
{
while (1)
{
cursor_pos = str_cursor(my_str);
wait (1);
}
}
////////////////////////////////////////////////////////////////////
function main()
{
on_e = edit_text;
track_cursor();
video_mode = 7;
screen_color.blue = 150;
}
////////////////////////////////////////////////////////////////////////////////