I tested somethings
PHP Code:
public test_thing(id)
{
client_print(1, print_chat, "test 8" )
static ent
ent = create_entity("info_target")
remove_entity(ent)
// added x function here
list of function tested ( x functions )
PHP Code:
remove_entity(ent)
dllfunc(DLLFunc_Spawn, ent)
set_pev(ent, pev_solid, SOLID_NOT)
entity_set_size(ent, Float:{ -3.0, -3.0, -3.0 }, Float:{ 3.0, 3.0, 3.0 } )
set_pev( ent, pev_aiment, id ) // i guess set_pev is safe and dont matter what im sending here
engfunc(EngFunc_RemoveEntity, ent)
entity_set_model(ent, precachedvalid_model)
I tested them one by one and non of them crashed my server.
Just got error logs (invalid entity)
Now the problem is that when im doing something with entities im using always set_pev
( im replacing them soon with engine but since it is easier to write with pev im using that )
And the funny thing is that i never got error logs saying entity is invalid.
I also checked my code and i check everytime if user is connected or is entity valid.
Im out of ideas now.
I need to find those functions what crash ohter ways all that huge work creating that mod was useless because it cant be used if it is crashing.
There is still one thing what i havent tested and that is entity count.
If there are more than 1300 + something entities server crashes.
( seems pretty ridiculous that i reached that limit but who knows... )