thx,
thopught i understand it so i havent done it step by step so
now i changen the main.c and it freezes after i clicked ok when it says that it will close after 3 mins because i use the demo.
main.c
#include <acknex.h>
#include <anet.h>
#include <default.c>
#include <windows.h>
#include <ackphysx.h>
#include <main.h>
#include <kotu_network.c>
function PhysikIntialise()
{
physX_open();// für Physik !
pX_setgravity(vector(0,0,-9));
}
function main()
{
PhysikIntialise();
var i;
fps_max = 60;
mouse_mode = 0;
video_mode = 8;
video_screen = 0;
//for(i=0;i<4;i++) {players[i] = 0;}
level_load("media/levels/shooter.wmb");
while(!key_any)
{
wait(1);
}
/*if(key_s)
{
inkey_playername_text.flags |= VISIBLE;
inkey(playername_input);
inkey_playername_text.flags &= ~VISIBLE;
enet_initialisieren();
start_server();
wait(4);
start_client(_str("127.0.0.1"));
}
else
{
inkey_playername_text.flags |= VISIBLE;
inkey(playername_input);
inkey_playername_text.flags &= ~VISIBLE;
enet_initialisieren();
start_client(_str("127.0.0.1"));
}
while(1)
{
mouse_pos.x = mouse_cursor.x;
mouse_pos.y = mouse_cursor.y;
camera.pan -= mouse_intens*mouse_force.x;
camera.tilt += mouse_intens*mouse_force.y;
if(camera.tilt > 90 )
{
camera.tilt = 90;
}
if(camera.tilt < -90)
{
camera.tilt = -90;
}
wait (1);
}*/
sys_exit("123");
}
so it don't load the level, so i think there is no problem with anet, but with the alert of the demo or my pc.