I'm Getting An Frustrating Error!
#1

I Do Not understand! So Heres Whats Happening This Line

Код:
public OnFilterScriptInit()
{
	print("\n--------------------------------------");
	print(" Thanks For Playing!");
	print("--------------------------------------\n");
	return 1;
}
Is Giving Me This Error

Код:
 error 001: expected token: ";", but found "public"
Reply
#2

The line before

pawn Код:
public OnFilterScriptInit()
Has a mission semi-colon ';'.
Reply
#3

What's above this code snippet? You should try reading and understand the error, it is pretty self explanitory.
Reply
#4

Well Since i Wasnt Running Filterscript i thought, how about removeing that stuff. So i did and i got this error?

Код:
error 001: expected token: ";", but found "-identifier-"
Reply
#5

Quote:
Originally Posted by HayZatic
Посмотреть сообщение
Well Since i Wasnt Running Filterscript i thought, how about removeing that stuff. So i did and i got this error?

Код:
error 001: expected token: ";", but found "-identifier-"
That hasn't answered our question, there is nothing wrong with the snippet you showed us. The problem lies in the code before it, and it's still there. You're clearly missing a semi-colon, read the error and understand it.

I really recommend you start reading up on the official PAWN documentation over at Compuphase's PAWN page.
Reply
#6

The line before the line with the error is missing a semi-colon as stated above.
Reply
#7

Thanks, yes it was a simple error, When the code was this

Код:
new RandomMSG[][] =
{
    "Thank You  For Playing At The Server! We Enjoy Your Stay!",
    "Please No Hacking, We Will Warn Your If We Spot An Hacker!",
    "Someone Is Hacking And No Admin Is Online? Please Report Them At The Fourms!"
}
I Clearly Forgot The ; at the end so now it looks like

Код:
new RandomMSG[][] =
{
    "Thank You  For Playing At The Server! We Enjoy Your Stay!",
    "Please No Hacking, We Will Warn Your If We Spot An Hacker!",
    "Someone Is Hacking And No Admin Is Online? Please Report Them At The Fourms!"
};
Thanks, Ill Start Reading the guide!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)