Hey guys =)
There I am, again =D Just took a few days off working with my game - in two days school is finished, so I have enough time in my holidays =)
But today I took a little look into my sourcecode and played a bit "Space Pong", when I noticed two errors.
This is the first error:
When I want to enter my name for the highscore, the area where I can enter letters has this weird background...(nonetheless I can enter letters)
This is the second error:
In my highscore-screen the names are not shown - just this little "TEST" was posted (but this happened, when I used the highscore-send-function with "TEST" as string).
For a better clear view, I'll show you the codes, which are used:
STRING* enter_name1_string = "";
STRING* enter_name2_string = "";
STRING* show_name_string = " "; // leerer String
TEXT* show_hsname1_text =
{
pos_x = 515;
pos_y = 439;
layer = 17;
font = "#16";
string(enter_name1_string);
}
TEXT* show_hsname2_text =
{
pos_x = 515;
pos_y = 439;
layer = 17;
font = "#16";
string(enter_name2_string);
}
function string_eingeben(STRING* my_str)
{
while(1)
{
if (inchar(enter_name1_string) == 13) break;
str_cat(enter_name2_string, enter_name1_string);
}
}
function enter_name() // Name in die Highscore-Liste eintragen
{
pw_text.flags &= ~SHOW;
cw_text.flags &= ~SHOW;
enter_pan.flags |= SHOW;
show_hsname1_text.flags |= SHOW;
show_hsname2_text.flags |= SHOW;
var key = inkey(show_name_string);
if (key == 13) string_eingeben(show_name_string);
wait(-5);
webscore_send(show_name_string,"sp_scores",str_for_num(NULL, score), "");
win_ask();
}
I'm using the online-webscore-code by Torsten Simon.
Greetz, Minamato