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