Well i'm trying to find more info about this error that leads to server shutting down. I found another thread with the same problem but no extra info about that.
I'm trying to create and spawn a sprite:
PHP Code:
stock create_spr(id,iOrigin[3]) {
new Float:fOrigin[3]
new ent = create_entity("env_sprite")
if(!ent)
return;
IVecFVec(iOrigin, fOrigin)
entity_set_string(ent, EV_SZ_classname, "test")
entity_set_model(ent, "sprites/test.spr")
entity_set_edict(ent, EV_ENT_owner, id)
entity_set_int(ent, EV_INT_spawnflags, SF_SPRITE_STARTON)
entity_set_float(ent, EV_FL_framerate, 30.0)
DispatchSpawn(ent)
entity_set_origin(ent, fOrigin)
entity_set_size(ent, Float:{-10.0, -10.0, -10.0}, Float:{10.0, 10.0, 10.0})
entity_set_int(ent, EV_INT_solid, SOLID_TRIGGER)
entity_set_int(ent, EV_INT_movetype, MOVETYPE_FLY)
entity_set_int(ent, EV_INT_rendermode, kRenderTransAdd)
entity_set_float(ent, EV_FL_renderamt, 255.0)
entity_set_float(ent, EV_FL_scale, 1.0)
}
new origin[3];
get_user_origin(id,origin,2);
create_spr(id,origin);
Code:
FATAL ERROR (shutting down): Cache_UnlinkLRU: NULL link
Is there anything wrong in code?