SA-MP Forums Archive
Tag mismatch warnings :/ WHY? WTF?! - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Tag mismatch warnings :/ WHY? WTF?! (/showthread.php?tid=98257)



Tag mismatch warnings :/ WHY? WTF?! - Pawel2k9 - 19.09.2009

This wierd error:

Код:
 : warning 213: tag mismatch
 : warning 213: tag mismatch
 : warning 213: tag mismatch
 : warning 213: tag mismatch
 : warning 213: tag mismatch
 : warning 213: tag mismatch
 : warning 213: tag mismatch
 : warning 213: tag mismatch
 : warning 213: tag mismatch
 : warning 213: tag mismatch
 : warning 213: tag mismatch
 : warning 213: tag mismatch
 : warning 213: tag mismatch
 : warning 213: tag mismatch
in those lines:

Код:
new CarSpawns[14][eCars] = {
	{1032.8171,-1594.2629,13.3356,180.7377},
	{1032.8412,-1605.4596,13.2620,180.7761},
	{1032.8937,-1618.2432,13.1770,179.4065},
	{1032.8481,-1631.3947,13.2444,180.2683},
	{1032.9414,-1642.8336,13.1880,180.3157},
	{1042.3253,-1653.3488,13.1198,0.0676},
	{1042.2361,-1638.4474,13.1781,0.0340},
	{1041.9376,-1604.1061,13.2575,359.4472},
	{1042.0410,-1593.3848,13.2082,1.3227},
	{1032.9797,-1654.3385,13.3243,179.8271},
	{1062.6161,-1772.6067,13.0134,270.2862},
	{1083.9197,-1760.8319,13.3628,270.2057},
	{1077.1674,-1760.7792,13.0992,89.7860},
	{1098.4722,-1766.6899,13.0649,90.7591}
  };
any reason ?


Re: Tag mismatch warnings :/ WHY? WTF?! - ilikepie2221 - 19.09.2009

new Float:CarSpawns[14][eCars] = {
{1032.8171,-1594.2629,13.3356,180.7377},
{1032.8412,-1605.4596,13.2620,180.7761},
{1032.8937,-1618.2432,13.1770,179.4065},
{1032.8481,-1631.3947,13.2444,180.2683},
{1032.9414,-1642.8336,13.1880,180.3157},
{1042.3253,-1653.3488,13.1198,0.0676},
{1042.2361,-1638.4474,13.1781,0.0340},
{1041.9376,-1604.1061,13.2575,359.4472},
{1042.0410,-1593.3848,13.2082,1.3227},
{1032.9797,-1654.3385,13.3243,179.8271},
{1062.6161,-1772.6067,13.0134,270.2862},
{1083.9197,-1760.8319,13.3628,270.2057},
{1077.1674,-1760.7792,13.0992,89.7860},
{1098.4722,-1766.6899,13.0649,90.7591}
};


Re: Tag mismatch warnings :/ WHY? WTF?! - brett7 - 19.09.2009

what did you change?


Re: Tag mismatch warnings :/ WHY? WTF?! - Pawel2k9 - 19.09.2009

he added float but didnt help


Re: Tag mismatch warnings :/ WHY? WTF?! - brett7 - 19.09.2009

pawn Код:
new Float:vehicles[14][4] = {
    {1032.8171,-1594.2629,13.3356,180.7377},
    {1032.8412,-1605.4596,13.2620,180.7761},
    {1032.8937,-1618.2432,13.1770,179.4065},
    {1032.8481,-1631.3947,13.2444,180.2683},
    {1032.9414,-1642.8336,13.1880,180.3157},
    {1042.3253,-1653.3488,13.1198,0.0676},
    {1042.2361,-1638.4474,13.1781,0.0340},
    {1041.9376,-1604.1061,13.2575,359.4472},
    {1042.0410,-1593.3848,13.2082,1.3227},
    {1032.9797,-1654.3385,13.3243,179.8271},
    {1062.6161,-1772.6067,13.0134,270.2862},
    {1083.9197,-1760.8319,13.3628,270.2057},
    {1077.1674,-1760.7792,13.0992,89.7860},
    {1098.4722,-1766.6899,13.0649,90.7591}
  };
try that


Re: Tag mismatch warnings :/ WHY? WTF?! - Pawel2k9 - 20.09.2009

now i get this errer :

Код:
9294) : error 032: array index out of bounds (variable "CarSpawns")
Код:
ublic AddCar(carcoords)
{
	new randcol = random(126);
	new randcol2 = 1;
	if (rccounter == 14)
	{
		rccounter = 0;
	}
	AddStaticVehicleEx(carselect[rccounter], CarSpawns[carcoords][pos_x], CarSpawns[carcoords][pos_y], CarSpawns[carcoords][pos_z], CarSpawns[carcoords][z_angle], randcol, randcol2, 60000);
	rccounter++;
	return 1;
}
this line:
Код:
AddStaticVehicleEx(carselect[rccounter], CarSpawns[carcoords][pos_x], CarSpawns[carcoords][pos_y], CarSpawns[carcoords][pos_z], CarSpawns[carcoords][z_angle], randcol, randcol2, 60000);



Re: Tag mismatch warnings :/ WHY? WTF?! - PoWerZ - 20.09.2009

change those things
"pos_z" to "0"
"pos_z" to "1"
"pos_z" to "2"
"z_angle" to "3"
Код:
AddStaticVehicleEx(carselect[rccounter], CarSpawns[carcoords][0], CarSpawns[carcoords][1], CarSpawns[carcoords][2], CarSpawns[carcoords][3], randcol, randcol2, 60000);
Should work.