just a little question:
#include <acknex.h>
#include <default.c>
STRING* string1 = "";
STRING* string2 = "";
STRING* entry_str = " "; // long empty string
TEXT* name_show =
{
pos_x = 50;
pos_y = 50;
layer = 1;
font = "#16";
string(string1);
flags = SHOW;
}
TEXT* name_show2 =
{
pos_x = 50;
pos_y = 50;
layer = 1;
font = "#16";
string(string2);
flags = SHOW;
}
function process_entry(STRING*)
{
while(1)
{
if (inchar(string1) == 13) break;
str_cat(string2,string1);
}
}
function main ()
{
video_mode = 7; // Bildschirm der Größe 1280x800
mouse_mode = 4; // aktiviere Maus
var key = inkey(entry_str); // wait until [enter] pressed
if (key == 13) process_entry(entry_str);
}
which of the three strings is the one which displays the name in the end? When I use them in my highscore-send function, the show nothing, allthough the name was displayed before (while entering it)...
greetz, Minamato