SA-MP Forums Archive
Warning 213. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Warning 213. (/showthread.php?tid=611879)



Warning 213. - Dayrion - 11.07.2016

Hi.
I've warning 213: tag mismatch. I know what does this mean and I know why I've this one (I've 3 float in a 2D list with a string).
How can ignore this warning ? I mean my code working even with this warning.
Example:
PHP код:
new Int247[][] =
{
    {-
25.884498,-185.868988,1003.54687517"24/7 - 1"},
    {
6.091179,-29.271898,1003.549438,     10"24/7 - 2"},
    {-
30.946699,-89.609596,1003.546875,     18"24/7 - 3"},
    {-
25.132598,-139.066986,1003.54687516"24/7 - 4"},
    {-
27.312299,-29.277599,1003.557250,     4"24/7 - 5"},
    {-
26.691598,-55.714897,1003.546875,  6"24/7 - 6"}
}; 



Re: Warning 213. - K0P - 11.07.2016

Код:
new Int247[3][] = 
{ 
    {-25.884498,-185.868988,1003.546875, 17, "24/7 - 1"}, 
    {6.091179,-29.271898,1003.549438,     10, "24/7 - 2"}, 
    {-30.946699,-89.609596,1003.546875,     18, "24/7 - 3"}, 
    {-25.132598,-139.066986,1003.546875, 16, "24/7 - 4"}, 
    {-27.312299,-29.277599,1003.557250,     4, "24/7 - 5"}, 
    {-26.691598,-55.714897,1003.546875,  6, "24/7 - 6"} 
};



Re: Warning 213. - Dayrion - 11.07.2016

Quote:
Originally Posted by K0P
Посмотреть сообщение
Код:
new Int247[3][] = 
{ 
    {-25.884498,-185.868988,1003.546875, 17, "24/7 - 1"}, 
    {6.091179,-29.271898,1003.549438,     10, "24/7 - 2"}, 
    {-30.946699,-89.609596,1003.546875,     18, "24/7 - 3"}, 
    {-25.132598,-139.066986,1003.546875, 16, "24/7 - 4"}, 
    {-27.312299,-29.277599,1003.557250,     4, "24/7 - 5"}, 
    {-26.691598,-55.714897,1003.546875,  6, "24/7 - 6"} 
};
?? Not at all.


Re: Warning 213. - DarkSkull - 11.07.2016

PHP код:
new Int247[5][4] = 

    {-
25.884498,-185.868988,1003.54687517"24/7 - 1"}, 
    {
6.091179,-29.271898,1003.549438,     10"24/7 - 2"}, 
    {-
30.946699,-89.609596,1003.546875,     18"24/7 - 3"}, 
    {-
25.132598,-139.066986,1003.54687516"24/7 - 4"}, 
    {-
27.312299,-29.277599,1003.557250,     4"24/7 - 5"}, 
    {-
26.691598,-55.714897,1003.546875,  6"24/7 - 6"
}; 
Have you tried this?


Re: Warning 213. - WhiteGhost - 11.07.2016

Quote:
Originally Posted by DarkSkull
Посмотреть сообщение
PHP код:
new Int247[5][4] = 

    {-
25.884498,-185.868988,1003.54687517"24/7 - 1"}, 
    {
6.091179,-29.271898,1003.549438,     10"24/7 - 2"}, 
    {-
30.946699,-89.609596,1003.546875,     18"24/7 - 3"}, 
    {-
25.132598,-139.066986,1003.54687516"24/7 - 4"}, 
    {-
27.312299,-29.277599,1003.557250,     4"24/7 - 5"}, 
    {-
26.691598,-55.714897,1003.546875,  6"24/7 - 6"
}; 
Have you tried this?
Shouldnt it be this?

Код:
new Int247[6][4] = 
{ 
    {-25.884498,-185.868988,1003.546875, 17, "24/7 - 1"}, 
    {6.091179,-29.271898,1003.549438,     10, "24/7 - 2"}, 
    {-30.946699,-89.609596,1003.546875,     18, "24/7 - 3"}, 
    {-25.132598,-139.066986,1003.546875, 16, "24/7 - 4"}, 
    {-27.312299,-29.277599,1003.557250,     4, "24/7 - 5"}, 
    {-26.691598,-55.714897,1003.546875,  6, "24/7 - 6"} 
};



Re: Warning 213. - K0P - 11.07.2016

Quote:
Originally Posted by Dayrion
Посмотреть сообщение
?? Not at all.
Wait,i was about to edit it

Код:
new Int247[][5] = 
{ 
    {-25.884498,-185.868988,1003.546875, 17, "24/7 - 1"}, 
    {6.091179,-29.271898,1003.549438,     10, "24/7 - 2"}, 
    {-30.946699,-89.609596,1003.546875,     18, "24/7 - 3"}, 
    {-25.132598,-139.066986,1003.546875, 16, "24/7 - 4"}, 
    {-27.312299,-29.277599,1003.557250,     4, "24/7 - 5"}, 
    {-26.691598,-55.714897,1003.546875,  6, "24/7 - 6"} 
};

enum yourenumname
{
    Float:posX,
    Float:posY,
    Float:posZ,
    Interior,
    Name[50]
}



Re: Warning 213. - DarkSkull - 11.07.2016

Quote:
Originally Posted by WhiteGhost
Посмотреть сообщение
Shouldnt it be this?

Код:
new Int247[6][4] = 
{ 
    {-25.884498,-185.868988,1003.546875, 17, "24/7 - 1"}, 
    {6.091179,-29.271898,1003.549438,     10, "24/7 - 2"}, 
    {-30.946699,-89.609596,1003.546875,     18, "24/7 - 3"}, 
    {-25.132598,-139.066986,1003.546875, 16, "24/7 - 4"}, 
    {-27.312299,-29.277599,1003.557250,     4, "24/7 - 5"}, 
    {-26.691598,-55.714897,1003.546875,  6, "24/7 - 6"} 
};
Nope, because it counts '0' as well.


Re: Warning 213. - K0P - 11.07.2016

Quote:
Originally Posted by WhiteGhost
Посмотреть сообщение
Shouldnt it be this?

Код:
new Int247[6][4] = 
{ 
    {-25.884498,-185.868988,1003.546875, 17, "24/7 - 1"}, 
    {6.091179,-29.271898,1003.549438,     10, "24/7 - 2"}, 
    {-30.946699,-89.609596,1003.546875,     18, "24/7 - 3"}, 
    {-25.132598,-139.066986,1003.546875, 16, "24/7 - 4"}, 
    {-27.312299,-29.277599,1003.557250,     4, "24/7 - 5"}, 
    {-26.691598,-55.714897,1003.546875,  6, "24/7 - 6"} 
};
It counts from 0 so 5 is alright


Re: Warning 213. - Dayrion - 11.07.2016

Will not working.


Re: Warning 213. - Dayrion - 11.07.2016

Quote:
Originally Posted by K0P
Посмотреть сообщение
Wait,i was about to edit it

Код:
new Int247[][5] = 
{ 
    {-25.884498,-185.868988,1003.546875, 17, "24/7 - 1"}, 
    {6.091179,-29.271898,1003.549438,     10, "24/7 - 2"}, 
    {-30.946699,-89.609596,1003.546875,     18, "24/7 - 3"}, 
    {-25.132598,-139.066986,1003.546875, 16, "24/7 - 4"}, 
    {-27.312299,-29.277599,1003.557250,     4, "24/7 - 5"}, 
    {-26.691598,-55.714897,1003.546875,  6, "24/7 - 6"} 
};

enum yourenumname
{
    Float:posX,
    Float:posY,
    Float:posZ,
    Interior,
    Name[50]
}
Apologize, I didn't see this one.
Also this is smart and it's working. I'll rep you and everyone who tried to help me.