SA-MP Forums Archive
Error - 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: Error (/showthread.php?tid=470827)



Error - xdarren - 19.10.2013

I get an error: tag mismatch
It's causing it something in this code and I dont know what: Please help

Код:
enum spawnfields
{
	spawnid,
	Float:spawnx,
	Float:spawny,
	Float:spawnz,
	ispawn,
	vspawn
}

new RSpawnNo=0;
new randomspawn[][spawnfields] =
{
	{0,1742.8096,-1863.1350,13.5754,1.4961,0}//ls

};



Re: Error - xdarren - 20.10.2013

anyone ?


Re: Error - [D]ry[D]esert - 20.10.2013

Quote:
Originally Posted by xdarren
Посмотреть сообщение
new randomspawn[][spawnfields] =
{
{0,1742.8096,-1863.1350,13.5754,1.4961,0}//ls

};[/code]
i think you cant do this, add a number in [], for example:
pawn Код:
new randomspawn[1][spawnfields] =
{
    {0,1742.8096,-1863.1350,13.5754,1.4961,0}//ls

};
or change it i think to:
pawn Код:
new randomspawn[][]=
{
    {0,1742.8096,-1863.1350,13.5754,1.4961,0}//ls

};



Re: Error - JohnRazer - 20.10.2013

Which line?


Re: Error - xdarren - 20.10.2013

It gives me error exacly on this row/line

Код:
	{0,1742.8096,-1863.1350,13.5754,1.4961,0}//ls
warning 213: tag mismatch


Re: Error - HardRock - 20.10.2013

Read [D]ry[D]esert post.


Re: Error - xdarren - 20.10.2013

Tried both ways and it gives me even more errors.


Re: Error - HardRock - 20.10.2013

PHP код:
new randomspawn[][spawnfields] = 
to

PHP код:
new randomspawn[][0][spawnfields] = 



Re: Error - xdarren - 20.10.2013

Quote:
Originally Posted by HardRock
Посмотреть сообщение
PHP код:
new randomspawn[][spawnfields] = 
to

PHP код:
new randomspawn[][0][spawnfields] = 
More errors showed up, about overwriting spawnx


Re: Error - rappy93 - 20.10.2013

Not sure if this will work but you can give it a try.

pawn Код:
new randomspawn[][spawnfields] =
{
     0,1742.8096,-1863.1350,13.5754,1.4961,0;   //ls
};