AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   backwards mins/maxs (https://forums.alliedmods.net/showthread.php?t=92273)

kossolax 05-12-2009 17:11

backwards mins/maxs
 
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.3172.8}
    new 
Float:buyzone_max[3] = {767.8, -2928.074.3}
        
    new 
entity engfunc(EngFunc_CreateNamedEntityengfunc(EngFunc_AllocString"func_buyzone"));
        
    
dllfunc(DLLFunc_Spawnentity);
    
engfunc(EngFunc_SetSizeentitybuyzone_minbuyzone_max);


But it's return this error :

FATAL ERROR (shutting down): Host_Error: backwards mins/maxs

Someone can help me please?

Thanks in advance :)

Dr.G 05-12-2009 17:48

Re: backwards mins/maxs
 
switch them ;)http://forums.alliedmods.net/showthread.php?t=76707

Exolent[jNr] 05-12-2009 20:33

Re: backwards mins/maxs
 
Your problem is that the Z or [2] value of the mins is larger than the value of the Z or [2] value of the maxs.

kossolax 05-13-2009 01:55

Re: backwards mins/maxs
 
Quote:

Originally Posted by Dr.G (Post 826454)

Yes, I saw that before, but he doesnt explain about the value...


Quote:

Originally Posted by Exolent[jNr] (Post 826522)
Your problem is that the Z or [2] value of the mins is larger than the value of the Z or [2] value of the maxs.

oh so simply, Thanks a lot :D


All times are GMT -4. The time now is 01:36.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.