11.06.2013, 17:28
Introduction
I have seen many users posting this error in the scripting help section and they do not know how to fix it, so that's why I thought of making this simple tutorial to help newbies
Let's get started.
Solution
This error is caused due to the absence of the function "main" in your script, so of course the solution is to add the function "main" in your script.
Go at the top of your script and add this snippet
Then go ahead and compile (easiest way to compile is to press F5) and you're done. The error won't appear again in your server console (server log).
___________________________________
Note:
When you open pawno (blank) and press on "New", the function "main" is added by default as this
and as you notice the braces contain prints (on the server console) that prints the dashes up and down and the word "Bare Script".
Thank you for reading.
I have seen many users posting this error in the scripting help section and they do not know how to fix it, so that's why I thought of making this simple tutorial to help newbies
Let's get started.
Solution
This error is caused due to the absence of the function "main" in your script, so of course the solution is to add the function "main" in your script.
Go at the top of your script and add this snippet
pawn Код:
main(){}
___________________________________
Note:
When you open pawno (blank) and press on "New", the function "main" is added by default as this
pawn Код:
main()
{
print("\n----------------------------------");
print(" Bare Script\n");
print("----------------------------------\n");
}
Thank you for reading.