Hello, I'd like to spawn a new buy zone in an custom area...
So I got the origin from both side of the area :
PHP Code:
public plugin_precache() {
new Float:buyzone_min[3] = {533.2, -3051.3, 172.8}
new Float:buyzone_max[3] = {767.8, -2928.0, 74.3}
new entity = engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "func_buyzone"));
dllfunc(DLLFunc_Spawn, entity);
engfunc(EngFunc_SetSize, entity, buyzone_min, buyzone_max);
}
But it's return this error :
FATAL ERROR (shutting down): Host_Error: backwards mins/maxs
Someone can help me please?
Thanks in advance