Raised This Month: $ Target: $400
 0% 

tag mismatch float


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Snoozy
New Member
Join Date: Apr 2012
Old 04-22-2012 , 16:54   tag mismatch float
Reply With Quote #1

UserData[id][FloatVal]=0.0;
Gives tag mismatch warning for some reason, even though it is defined Float:FloatVal, in the enum?
How come & how to fix?
Snoozy is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 04-22-2012 , 17:00   Re: tag mismatch float
Reply With Quote #2

_:0.0
__________________
Arkshine is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 04-23-2012 , 00:42   Re: tag mismatch float
Reply With Quote #3

Also, "FloatVal" should not be declared as a float. You can only index arrays with integers.
__________________
fysiks is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 04-24-2012 , 10:39   Re: tag mismatch float
Reply With Quote #4

Quote:
Originally Posted by fysiks View Post
Also, "FloatVal" should not be declared as a float. You can only index arrays with integers.
I think he meant he did something like this:
Code:
enum MyEnum {     SomeInt,     Float:SomeFloat }; new data[MyEnum]; data[SomeFloat] = 0.0;
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 04-24-2012 , 18:37   Re: tag mismatch float
Reply With Quote #5

Quote:
Originally Posted by Exolent[jNr] View Post
I think he meant he did something like this:
Code:
enum MyEnum {     SomeInt,     Float:SomeFloat }; new data[MyEnum]; data[SomeFloat] = 0.0;
Oh, that would make a difference .
__________________
fysiks 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 07:41.


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