Help for Script of Register/login for RP
#4

Loose indentation warnings are just dodgy tabbing.

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)
You need to use '==' in place of '=' within if statements. = is to set, == is to compare.

Make it
pawn Код:
if(reason == 0)
______
pawn Код:
3836 :idx5;
To declare a new variable, you MUST use "new" first.

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.
Reply


Messages In This Thread
Help for Script of Register/login for RP - by Parscafe - 25.06.2012, 22:03
Re: Help for Script of Register/login for RP - by Ukko - 26.06.2012, 00:20
Re: Help for Script of Register/login for RP - by Parscafe - 26.06.2012, 13:27
Re: Help for Script of Register/login for RP - by Rob_Maate - 26.06.2012, 13:37
Re: Help for Script of Register/login for RP - by Parscafe - 26.06.2012, 14:34

Forum Jump:


Users browsing this thread: 3 Guest(s)