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 , 08:29   Re: float double array - tag mismatch
Reply With Quote #1

This worked:
Code:
enum _:list_stats {     Float:istr = 0,//   actual str     Float:iagi, //1 actual agi     Float:iint, //2 actual int     Float:pmp,  //3 mp pool     Float:rhp,  //4 hp reg     Float:rmp,  //5 mp reg     Float:mhp,  //6 hp max     Float:mmp,  //7 mp max     Float:rap,  //8 ap red     Float:pap   //9 ap pool }new Float:stats[33][list_stats];
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?
__________________

Last edited by ehha; 11-22-2009 at 08:33.
ehha 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 13:42.


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