PDA

View Full Version : warning 213: tag mismatch


shady001
23/03/2013, 04:21 PM
so i have this:

new fEnter[18]; //global

//OnGamemodeinit()
for(new f = 0;f<=sizeof(sFactions);f++)
{
new stringf[256];
format(stringf,sizeof(stringf),"{FFFF00}%s\n{FF0000}Leader:%s\n{0000FF}",sFactions[f][fName],sFactions[f][fLeader]);
if(f == 1)
{
fEnter[f] = Create3DTextLabel(stringf,RED,sFactions[f][fX],sFactions[f][fY],sFactions[f][fZ],15,-1,1);//warning 213: tag mismatch
}
else{
fEnter[f] = Create3DTextLabel(stringf,RED,sFactions[f][fX],sFactions[f][fY],sFactions[f][fZ],15,-1,1);//warning 213: tag mismatch
AddStaticPickup(19198, 23, sFactions[f][fX],sFactions[f][fY],sFactions[f][fZ]);
}

}

public Update3DText()
{
for(new i = 0;i <= sizeof(sFactions);i++)
{
new stringf[256];
format(stringf,sizeof(stringf),"{FFFF00}%s\n{FF0000}Leader:%s\n{0000FF}",sFactions[i][fName],sFactions[i][fLeader]);
Update3DTextLabelText(fEnter[i],RED,stringf); //warning 213: tag mismatch
}
}


My question is : what type should
new fEnter[18]; //global be ?(float/string/etc) so i can get rid of that warning

kamzaf
23/03/2013, 04:24 PM
new Text3D:fEnter[MAX_FACTIONS];

I think.

shady001
23/03/2013, 04:26 PM
Thanks that worked :)