All enet_function are working fine, I'm not using them for the first time. Everything is right.
enet_ent_create(_str("images/effects/nothing.pcx"),my.x,_str("MgTarget"));
didn't crash,
enet_ent_remove(enet_ent_globpointer(ent_MyPlane));
crashed.
I soluted the problem with a simple
wait(1); before it. Don't ask me why this works, maybe because I read some skills direct before i deleted the entity.
if(ent_MyPlane.team==TEAM1 && (MY_CONNECTION==1 || MY_CONNECTION==3))
{
OnlineDeathOne(-2,"");
}
if(ent_MyPlane.team==TEAM2 && (MY_CONNECTION==1 || MY_CONNECTION==3))
{
OnlineDeathTwo(-2,"");
}
if(ent_MyPlane.team==TEAM1 && MY_CONNECTION!=3 && MY_CONNECTION!=1)
{
enet_send_event(EVENT_DEATH_ONE,str_create(""),SERVER);
}
if(ent_MyPlane.team==TEAM2 && MY_CONNECTION!=3 && MY_CONNECTION!=1)
{
enet_send_event(EVENT_DEATH_TWO,str_create(""),SERVER);
}
Ok, it works now, thanks to all who tried to help me.