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



error 001: expected token: ";", but found "-identifier-" - matwz - 23.02.2011

I have this little problem, when i was making objects, and gates which i can open.

C:\RWD serveris\filterscripts\bazeruncis1.pwn(32) : error 001: expected token: ";", but found "-identifier-"
C:\RWD serveris\filterscripts\bazeruncis1.pwn(89) : warning 209: function "OnPlayerCommandText" should return a value
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

How could i fix it?

mainigais = 0 //31
baze = CreateObject(972,1098.048218, 2294.252930, 9.817194, 0.0000, 0.0000, 89.3814); //32
CreateObject(971, 1144.274170, 2282.872314, 13.391321, 0.0000, 0.0000, 0.0000); //33
CreateObject(971, 1152.903320, 2282.856445, 13.390245, 0.0000, 0.0000, 0.0000); //34


Re: error 001: expected token: ";", but found "-identifier-" - Gotti_ - 23.02.2011

copy the line 32


Re: error 001: expected token: ";", but found "-identifier-" - matwz - 23.02.2011

i already posted them in topic main, look at the code ending


Re: error 001: expected token: ";", but found "-identifier-" - Haydz - 23.02.2011

You're missing a ';'

change mainigais = 0

to
pawn Код:
mainigais = 0;



Re: error 001: expected token: ";", but found "-identifier-" - matwz - 23.02.2011

Now it shows like this.

C:\RWD serveris\filterscripts\bazeruncis1.pwn(32) : error 010: invalid function or declaration


Re: error 001: expected token: ";", but found "-identifier-" - Astaa - 04.11.2012

Can you help me, i have this error :
"C:\Documents and Settings\12\Bureau\poker.pwn(241) : error 001: expected token: ";", but found "-identifier-""


Re: error 001: expected token: ";", but found "-identifier-" - ryansheilds - 05.11.2012

It means you're missing a semi-colon ( ; ) on the line before, simple as that.


Re: error 001: expected token: ";", but found "-identifier-" - Stu1 - 05.11.2012

Have you got
pawn Код:
new mainigais;
anywhere in your filterscript? If not then add it.


Re: error 001: expected token: ";", but found "-identifier-" - usamahifi - 09.02.2015

thanks guys ty very much " +REP "


Re: error 001: expected token: ";", but found "-identifier-" - CalvinC - 09.02.2015

This thread was from 2012, no reason to bump it.