Raised This Month: $ Target: $400
 0% 

enum & float double array - tag mismatch


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ehha
SourceMod Donor
Join Date: Apr 2006
Location: Sibiu
Old 11-22-2009 , 11:43   Re: float double array - tag mismatch
Reply With Quote #1

Now I understand, thanks again Arkshine!
__________________
ehha is offline
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 11-22-2009 , 13:31   Re: float double array - tag mismatch
Reply With Quote #2

Quote:
Originally Posted by ehha View Post
Thanks
But I don't understand why it worked, the items from enum should be the 2nd index for the double array, the index should be integer, right?
The tag of the enum values don't need to be float. The tag of the index would never alter to the tag of the variable. I already explained why you had tag mistach in your first code somehow I'm not sure whether you understood it or not.
You are saying the index should be an integer. I don't quite get what are you meaning with an integer. If you are meaning that the index can't be tagged you are wrong.

Quote:
Originally Posted by Arkshine View Post
It works because the tag output was not a float and before posting something I test always.
The output is always the tag the variable is and in this case float. I already said the tag of the index would never alter the tag of the variable.

Last edited by SnoW; 11-22-2009 at 13:35.
SnoW is offline
Send a message via MSN to SnoW
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 13:42.


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