SA-MP Forums Archive
error 001: expected token: ")", but found ";" - 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 001: expected token: ")", but found ";" (/showthread.php?tid=395820)



error 001: expected token: ")", but found ";" - goviscrap - 27.11.2012

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);



Re: error 001: expected token: ")", but found ";" - rbush12 - 27.11.2012

Have you tried removing the ;


Re: error 001: expected token: ")", but found ";" - goviscrap - 27.11.2012

Nope :P Im trying it now


Re: error 001: expected token: ")", but found ";" - goviscrap - 27.11.2012

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



Re: error 001: expected token: ")", but found ";" - maramizo - 27.11.2012

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



Re: error 001: expected token: ")", but found ";" - goviscrap - 27.11.2012

Nope not Working :/


Re: error 001: expected token: ")", but found ";" - GoldZoroGrab - 28.11.2012

well u give us line 14833-14835?

because we must see the lines that are before the error


Re: error 001: expected token: ")", but found ";" - azzerking - 28.11.2012

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


Re: error 001: expected token: ")", but found ";" - goviscrap - 28.11.2012

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


AW: error 001: expected token: ")", but found ";" - Skimmer - 28.11.2012

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