AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   enum with Float problem... (https://forums.alliedmods.net/showthread.php?t=126934)

joropito 05-15-2010 11:07

enum with Float problem...
 
I know this is a dumb problem... but it's really strange

PHP Code:

#include <amxmodx>
#include <engine>

enum _Render _rendermode_renderfxFloat:_renderamt }

new 
g_render[Render]

public 
wtf()
{
      new 
ent

      g_render
[_rendermode] = entity_get_int(entEV_INT_rendermode)
      
g_render[_renderfx] = entity_get_int(entEV_INT_renderfx)
      
g_render[_renderamt] = entity_get_float(entEV_FL_renderamt)



When I try to compile

Quote:

x.sma(14 -- 16) : warning 213: tag mismatch
in line 14 I have this

PHP Code:

      g_render[_renderamt] = entity_get_float(entEV_FL_renderamt

Removing other lines except that one the problem exists.

If I change entity_get_float by entity_get_int compiles fine, but the stored values are wrong (of course).

Am I missing something?
Someone know whats happening?

Bugsy 05-15-2010 11:18

Re: enum with Float problem...
 
Maybe this will help

http://forums.alliedmods.net/showpos...47&postcount=8

joropito 05-15-2010 11:33

Re: enum with Float problem...
 
Yes, removing the tag works fine.
I didn't knew that. I was using on other plugins Float values but only with constants and not with an assigment.

Thanks.


All times are GMT -4. The time now is 03:34.

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