Raised This Month: $ Target: $400
 0% 

enum & float double array - tag mismatch


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
ehha
SourceMod Donor
Join Date: Apr 2006
Location: Sibiu
Old 11-22-2009 , 06:45   enum & float double array - tag mismatch
Reply With Quote #1

Code:
#defien BASE_INT        20.0 #define BASE_MP_REG     0.01 #define INT_MUL         13.0 new Float:stats[33][11]; enum list_stats {     istr = 0,// actual str     iagi,   //1 actual agi     iint,   //2 actual int     php,    //3 hp pool     pmp,    //4 mp pool     rhp,    //5 hp reg     rmp,    //6 mp reg     mhp,    //7 hp max     mmp,    //8 mp max     rap,    //9 ap red     pap //10    ap pool } public client_connect(id) {     stats[id][istr] = 0.0;     stats[id][iagi] = 0.0;     stats[id][iint] = 0.0;     stats[id][php] = 0.0;     stats[id][pmp] = 0.0;     stats[id][rhp] = 0.0;     stats[id][rmp] = 0.0;     stats[id][mhp] = 0.0;     stats[id][mmp] = 0.0;     stats[id][rap] = 0.0; } ... //some func stats[id][iint] = BASE_INT; stats[id][mmp] = HERO_BASE_MP + (stats[id][iint] * INT_MUL); stats[id][pmp] = stats[id][mhp];  //warning 213: tag mismatch stats[id][php] = stats[id][mhp]; ... public mp_reg(id) {     new Float:mp_pool = stats[id][pmp]; //warning 213: tag mismatch     mp_pool = mp_pool + BASE_MP_REG + stats[id][rmp];     if(mp_pool > stats[id][mmp])         mp_pool = stats[id][mmp]; //warning 213: tag mismatch }
__________________

Last edited by ehha; 11-25-2009 at 11:15.
ehha is offline
 


Thread Tools
Display Modes

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