error 001: expected token: ")", but found ";"
#1

2 ERRORS.. How to fix :/

Код:
C:\Users\Nicklas\Desktop\PRP\gamemodes\PRP.pwn(14835) : error 029: invalid expression, assumed zero
C:\Users\Nicklas\Desktop\PRP\gamemodes\PRP.pwn(14835) : error 001: expected token: ")", but found ";"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
On the line:

Код:
			        InterpolateCameraPos(i, 1500.4318, -1076.7482, 181.2031, 2050.3582, -1911.6879, 13.5469, 20000, CAMERA_MOVE);
and this is the line above the ERROR line:
Код:
			        TogglePlayerSpectating(i, 1);
Reply
#2

Have you tried removing the ;
Reply
#3

Nope :P Im trying it now
Reply
#4

now im only getting
Код:
error 029: invalid expression, assumed zero
Reply
#5

The script says it should be:
pawn Код:
InterpolateCameraPos(i, 1500.4318, -1076.7482, 181.2031, 2050.3582, -1911.6879, 13.5469, 20000, CAMERA_MOVE));
Reply
#6

Nope not Working :/
Reply
#7

well u give us line 14833-14835?

because we must see the lines that are before the error
Reply
#8

remove the extra ) from the end of the line lol and try that?
Reply
#9

Quote:
Originally Posted by GoldZoroGrab
Посмотреть сообщение
well u give us line 14833-14835?

because we must see the lines that are before the error
Okay here it is:
Код:
			        TogglePlayerControllable(i, 0);
			        SendClientMessage(i, COLOR_YELLOW2, "REMEMBER TO HAVE FUN AT ALL TIME!");
           			TogglePlayerSpectating(i, 1);
        			InterpolateCameraPos(i, 1500.4318, -1076.7482, 181.2031, 2050.3582, -1911.6879, 13.5469, 20000, CAMERA_MOVE)}//CAMERA_MOVE
TogglePlayerControllable is on line 14833!


But i only got one error with Assumed Zero when i did "}" at the end of the line 14835 :S
Reply
#10

Try this.
pawn Код:
TogglePlayerControllable(i, 0);
SendClientMessage(i, COLOR_YELLOW2, "REMEMBER TO HAVE FUN AT ALL TIME!");
TogglePlayerSpectating(i, 1);
InterpolateCameraPos(i, 1500.4318, -1076.7482, 181.2031, 2050.3582, -1911.6879, 13.5469, 20000, CAMERA_MOVE); //CAMERA_MOVE
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)