error 001: expected token: ";", but found "new" - 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 "new" (
/showthread.php?tid=570390)
error 001: expected token: ";", but found "new" -
suni - 09.04.2015
the error
Quote:
error 001: expected token: ";", but found "new"
|
here's the code
Код:
new ln[MAX_PLAYERS]=0,revseen[][MAX_PLAYERS];
i cant fix it please help
AW: error 001: expected token: ";", but found "new" -
Mencent - 09.04.2015
Hello!
You have to write it so:
PHP код:
new ln[MAX_PLAYERS],revseen[MAX_PLAYERS];
If the error is still there, then please send me more code.
Mencent
Re: error 001: expected token: ";", but found "new" -
Denis1 - 09.04.2015
Check the code above that line and see whether ";" is missing or not.
Re: AW: error 001: expected token: ";", but found "new" -
suni - 09.04.2015
Quote:
Originally Posted by Mencent
Hello!
You have to write it so:
PHP код:
new ln[MAX_PLAYERS],revseen[MAX_PLAYERS];
If the error is still there, then please send me more code.
Mencent 
|
didnt work but thanks for trying to help me
Re: error 001: expected token: ";", but found "new" -
suni - 09.04.2015
Quote:
Originally Posted by Denis1
Check the code above that line and see whether ";" is missing or not.
|
you're right. that was missing above. thanks for helping me out guys. +rep
Re: error 001: expected token: ";", but found "new" -
Denis1 - 09.04.2015
You are welcome!