expected token: "#endif", but found "-end of file-"
#1

Ohai.
I get this crap error when i compile.."error 001: expected token: "#endif", but found "-end of file-"" I see suddenly removed the #endif somewhere. But my script has over 32000 lines.. good luck with finding that

What can I do? And if there is nothing else than checking every single line, is there a function to ignore the error?

greetz
Reply
#2

put #endif after the prints, should work
Reply
#3

search (ctrl+f) for
pawn Код:
#if
Then see if you can find the missing #endif
Reply
#4

Quote:
Originally Posted by Markx
Посмотреть сообщение
put #endif after the prints, should work
The console prints? Nah, that doesnt work

Quote:
Originally Posted by [03]Garsino
Посмотреть сообщение
search (ctrl+f) for
pawn Код:
#if
Then see if you can find the missing #endif
hmm, i allready tried that but i think i was to fast and didn't see it. Well, it will take some time but if theres no resolve i will try that.



thanks
Reply
#5

You have to put #endif after #if, see what #if is doing as a conditional to know where #endif have to stay

Or, put the code after #if here in the thread.

I hope that i have helped
Reply
#6

You should put #endif in the very last line
pawn Код:
return 1;
}
#endif
Reply
#7

If you dont have

#endif after ''Gamemode by your name'' it will say that.

so it should look like..

Quote:

main()
{
print("\n----------------------------------");
print(" Blank Gamemode by your name here");
print("----------------------------------\n");
}

#endif
Reply
#8

Quote:
Originally Posted by MrWorldWide
Посмотреть сообщение
If you dont have

#endif after ''Gamemode by your name'' it will say that.

so it should look like..
lool
srsly answering an 2 years old thread :rolf:
Reply
#9

Just add #endif at the bottom of your script.
Reply
#10

oh god didnt u read what i said above its a 2 years old thread
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)