hello i try to make a lan connection but every time i run this scrip i get a error w1403 (manual:More clients try to connect than entities are available in the level. The client is rejected. Increase max_entities.)

i tried a lot but i dont get it to work
if i try it white -sv -cl =sn main it works

Code:

var player_count;

function my_con_status()
{
rare1 +=1;//debug
if(connection == 0)
{
wait(1);
}
if(connection == 3)//1
{
if(str_cmpi(session_name,"main")==1)
{
rare += 1;//debug
}
}
}


function spawn
{
wait(1);
}


function sv_connect
{
create_lvl_1();//spawns a enity
if(event_join == 1)
{
player_count +=1;
}
if(EVENT_DISCONNECT == 1)
{
//player_count -=1;
}
rare2 = player_count;
}

on_server = sv_connect;

function lan_join()
{
if(session_connect("main",null))
{
level_load("lantry.wmb");
wait(-0.5);
create_lvl_1();//spawns a enity
}
//my_con_status();
}

function lan_svcreate()
{
if(session_open("main"))
{
level_load("lantry.wmb");
}
}

//lan_svcreate and lan_join are operated by a button
// no lvls running



thx for looking flits


"empty"