xObjects - wtf
#1

I have added xObjects inside of my GM, I get 2 errors on these lines..

Код:
C:\Program\SAMP Server\gamemodes\sldm.pwn(507) : error 001: expected token: ";", but found "{"
C:\Program\SAMP Server\gamemodes\sldm.pwn(545) : error 010: invalid function or declaration
Line 507:
pawn Код:
{18449, 2666.0464, -1047.6980, 88.5490, 0.0000, 35.2369, 0.0000, 500.0},
Line 545:
pawn Код:
};
Why..?
Reply
#2

Line 507:

(18449, 2666.0464, -1047.6980, 88.5490, 0.0000, 35.2369, 0.0000, 500.0);


Line 545:

);
Reply
#3

i think you just forgot a ';' in line 506.
and you don't put ';' after '}'
Reply
#4

Quote:
Originally Posted by luckie12
Line 507:

(18449, 2666.0464, -1047.6980, 88.5490, 0.0000, 35.2369, 0.0000, 500.0);


Line 545:

);
Completely wrong.
Quote:
Originally Posted by dice7
i think you just forgot a ';' in line 506.
and you don't put ';' after '}'
If you look at the code I posted, I didn't put a } there.

Dont post useless info.
Reply
#5

you have do >.<
Reply
#6

You must remove the comma after the object line before };.

Ex:
pawn Код:
(18449, 2666.0464, -1047.6980, 88.5490, 0.0000, 35.2369, 0.0000, 500.0)
};
Reply
#7

I have already done that, still get errors.

Quote:
Originally Posted by luckie12
you have do >.<
You have to use brackets, duh.
Reply
#8

try this

Код:
{18449, 2666.0464, -1047.6980, 88.5490, 0.0000, 35.2369, 0.0000, 500.0}; not ,
Reply
#9

Please delete ;
Reply
#10

Ah, I found the problem now, some "," were missing.

Thanks for the help everyone!!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)