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

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
Reply
#2

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
Reply
#3

Check the code above that line and see whether ";" is missing or not.
Reply
#4

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
Reply
#5

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
Reply
#6

You are welcome!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)