Raised This Month: $ Target: $400
 0% 

enum with Float problem...


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 05-15-2010 , 11:07   enum with Float problem...
Reply With Quote #1

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?
__________________

Divide et vinces
approved plugins | steam account

I don't accept PM for support. Just ask on forums.
If you're looking for private work, PM me.
joropito is offline
Send a message via MSN to joropito
 



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 03:34.


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