thanks!
but I just can't get it to work.
It's a very simple script. just something like:

Code:
	while(1)	
	{
		draw_text("1 'n 2",10,10,nullvector);
		if(key_1)
		{
			beep();
			GSTNet_ServerInit(2300);
			while(GSTNet_Connection()==0) {wait(1);} 
		GSTNet_Events(GSTNet_EventServer, _str("evServer"));
			GSTNet_StartClient(server_name,2300,1);
			create_client();
			break;
		}
		if(key_2)
		{
			GSTNet_StartClient(_str("192.168.2.101"),2300,1);
			while(GSTNet_Connection()==0) {draw_text("verbinde",10,10,nullvector);wait(1);} 
			create_client();
			break;
		}
		wait(1);
	}
	


So, the Server press 1. Create_Client is just the GSTNet_ent_create funktion.
The player gets created.
Now, the CLient starts the game, presses 2 and it will stay in the "GSTNet_Connection()==0" while.

some more things:
I get this Crash:
GSTNet: server initialized
GSTNet: ServerPort: 2300 2300
GSTNet: client initialized
Error E1515: Invalid arguments in ý: STRING
Program aborted
GSTNet-Version:(null)

because of this:

GSTNet_Version(sGSTNetTemp);
diag("\nGSTNet-Version:");
diag(sGSTNetTemp);

and the last thing:
the chat demo got an "empty prototype called in event" error. don't know what that means, but maybe you smile

also: the chat demo is nice, but, I think, the most new guys need just a simple script. just something like "server start, client start, 2 entities can be moved etc.
I would do such a demo, but I can't get it to work wink

Last edited by Samb; 12/27/08 16:47.