I have this code:
PHP Code:
for( new i = 0; i < MAX_ZONES; i++ )
CreateZone(g_flMins[i], g_flMaxs[i]);
PHP Code:
CreateZone(const Float: flMins[3], Float: flMaxs[3])
{
new iEnt = create_entity(g_szInfoTarget);
if( !is_valid_ent(iEnt) )
return PLUGIN_CONTINUE;
entity_set_string(iEnt, EV_SZ_classname, g_szZonesClassName);
entity_set_int(iEnt, EV_INT_movetype, MOVETYPE_FLY);
entity_set_int(iEnt, EV_INT_solid, SOLID_BBOX);
entity_set_size(iEnt, flMins, flMaxs);
return PLUGIN_CONTINUE;
}
Good, this work, the entity is created and I can't pass through it but when I look to entity server get crash.
Thanks.