Raised This Month: $51 Target: $400
 12% 

Solved [EngFunc_SetSize] must be a constant expression; assumed zero


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 10-11-2019 , 12:47   [EngFunc_SetSize] must be a constant expression; assumed zero
Reply With Quote #1

I'm trying to set sizes for entities more dynamically, by using messagemode, but EngFunc_SetSize keeps throwing errors.

In messagemode you just gotta enter the positive value, example 5.0 5.0 5.0 and then it automatically does the rest, as shown in this code

PHP Code:
new Float:fSize];
engfuncEngFunc_SetSizeiEnt, { -fSize], -fSize], -fSize] }, { fSize], fSize], fSize] } ); 
Code:
error 008: must be a constant expression; assumed zero
If I do this
PHP Code:
new Float:fSize];
engfuncEngFunc_SetSizeiEnt, -fSize], -fSize], -fSize], fSize], fSize], fSize] ); 
I get no errors when compiling but in-game it crashes and shows:
Code:
Host_Error: backwards mins/maxs
Fixed:
PHP Code:
    new Float:mins], Float:maxs];
    
mins] = -fSize];
    
mins] = -fSize];
    
mins] = -fSize];
        
    
maxs] = fSize];
    
maxs] = fSize];
    
maxs] = fSize];
        
    
engfuncEngFunc_SetSizeiEntminsmaxs ); 
__________________

Last edited by edon1337; 10-11-2019 at 13:55.
edon1337 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:23.


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