Raised This Month: $ Target: $400
 0% 

enum with Float problem...


Post New Thread Reply   
 
Thread Tools Display Modes
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
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 05-15-2010 , 11:18   Re: enum with Float problem...
Reply With Quote #2

Maybe this will help

http://forums.alliedmods.net/showpos...47&postcount=8
__________________
Bugsy is offline
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 05-15-2010 , 11:33   Re: enum with Float problem...
Reply With Quote #3

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

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


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