#1

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

};
Reply
#2

anyone ?
Reply
#3

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

};
Reply
#4

Which line?
Reply
#5

It gives me error exacly on this row/line

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

Read [D]ry[D]esert post.
Reply
#7

Tried both ways and it gives me even more errors.
Reply
#8

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

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

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

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

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
};
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)