26.06.2012, 13:37
Loose indentation warnings are just dodgy tabbing.
Make sure all codeblocks ( { to } ) are one tab in from it's parent codeblock:
______
You need to use '==' in place of '=' within if statements. = is to set, == is to compare.
Make it
______
To declare a new variable, you MUST use "new" first.
______
The first error you are getting is usually the result of a missing closing bracket. remove all coding from your OnPlayerDisconnect function and paste it into a notepad file. If it does not compile, it means another codeblock was not terminated.
Make sure all codeblocks ( { to } ) are one tab in from it's parent codeblock:
pawn Код:
myfunction();
{
if(a>b)
{
//Bla
}
}
pawn Код:
3839 :if(reason = 0)
Make it
pawn Код:
if(reason == 0)
pawn Код:
3836 :idx5;
pawn Код:
new idx5;
The first error you are getting is usually the result of a missing closing bracket. remove all coding from your OnPlayerDisconnect function and paste it into a notepad file. If it does not compile, it means another codeblock was not terminated.