14.12.2012, 14:11
You'll have to use an enumerator to store different data types into one single array.
You get a tag mismatch error because MapIcons is declared as an integer array, while you have not only integers, but floats too.
Here's how you could do it:
then define map icons with the enumerator as the cell:
You get a tag mismatch error because MapIcons is declared as an integer array, while you have not only integers, but floats too.
Here's how you could do it:
pawn Код:
enum iconInfo
{
integer1,
Float:1,
Float:2,
Float:3,
integer2,
integer3,
//skip the last one as all your mapicons are local; there's no point including this in the array
};
pawn Код:
new MapIcons[iconInfo] =
{ //your shit };

