Array tag mismatch
#3

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:

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
};
then define map icons with the enumerator as the cell:
pawn Код:
new MapIcons[iconInfo] =
{ //your shit };
Reply


Messages In This Thread
Array tag mismatch - by thefatshizms - 14.12.2012, 14:05
Re: Array tag mismatch - by RajatPawar - 14.12.2012, 14:09
Re: Array tag mismatch - by LarzI - 14.12.2012, 14:11
Re: Array tag mismatch - by thefatshizms - 14.12.2012, 14:13
Re: Array tag mismatch - by [HK]Ryder[AN] - 14.12.2012, 14:18
Re: Array tag mismatch - by LarzI - 14.12.2012, 14:19
Re: Array tag mismatch - by thefatshizms - 14.12.2012, 14:23
Re: Array tag mismatch - by LarzI - 14.12.2012, 14:25
Re: Array tag mismatch - by thefatshizms - 14.12.2012, 14:30
Re: Array tag mismatch - by maramizo - 14.12.2012, 14:46

Forum Jump:


Users browsing this thread: 1 Guest(s)