Gamestudio Links
Zorro Links
Newest Posts
Lapsa's very own thread
by Lapsa. 06/26/24 12:45
Executing Trades on Next Bar Open
by Zheka. 06/20/24 14:26
A simple game ...
by VoroneTZ. 06/18/24 10:50
Face player all the time ...
by bbn1982. 06/18/24 10:25
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (henrybane), 732 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mino, squik, AemStones, LucasJoshua, Baklazhan
19061 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: Enter Name for Highscore [Re: Minamato] #330901
06/30/10 17:32
06/30/10 17:32
Joined: Feb 2009
Posts: 80
STRING* location = "Germany";
Minamato Offline OP
Junior Member
Minamato  Offline OP
Junior Member

Joined: Feb 2009
Posts: 80
STRING* location = "Germany";
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:

Code:
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);
}



Code:
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

Last edited by Minamato; 06/30/10 17:35.
Re: Enter Name for Highscore [Re: Minamato] #331338
07/03/10 16:03
07/03/10 16:03
Joined: Feb 2009
Posts: 80
STRING* location = "Germany";
Minamato Offline OP
Junior Member
Minamato  Offline OP
Junior Member

Joined: Feb 2009
Posts: 80
STRING* location = "Germany";
is there nobody who can help me?

Re: Enter Name for Highscore [Re: Minamato] #332018
07/07/10 09:41
07/07/10 09:41
Joined: Feb 2009
Posts: 80
STRING* location = "Germany";
Minamato Offline OP
Junior Member
Minamato  Offline OP
Junior Member

Joined: Feb 2009
Posts: 80
STRING* location = "Germany";
guuuuys =D I need some help XD

Re: Enter Name for Highscore [Re: Minamato] #335276
07/27/10 16:14
07/27/10 16:14
Joined: Feb 2009
Posts: 80
STRING* location = "Germany";
Minamato Offline OP
Junior Member
Minamato  Offline OP
Junior Member

Joined: Feb 2009
Posts: 80
STRING* location = "Germany";
So, because I am on vacation, I have not much time to spend on the Internet. But I saw that nobody replied me =(

is there nobody who can help me with my problem? it's just this little thing that prevents me from finishing the game??

greetz!!

Re: Enter Name for Highscore [Re: Minamato] #335440
07/28/10 14:39
07/28/10 14:39
Joined: Sep 2009
Posts: 993
Budapest
Aku_Aku Offline
User
Aku_Aku  Offline
User

Joined: Sep 2009
Posts: 993
Budapest
Hi!

I don't know "online-webscore-code by Torsten Simon" but i suspect you modified that a little bit.
Please notice that:
Code:
function string_eingeben(STRING* my_str)
{
   while(1)
   {
   	if (inchar(enter_name1_string) == 13) break;
   	str_cat(enter_name2_string, enter_name1_string);
   }
}


In string_eingeben function the parameter that takes the string for store the name is my_str.
Unfortunately, inside the function you don't use this variable.
I think perhaps in the str_cat you should use that.

Page 2 of 2 1 2

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1