SA-MP Forums Archive
Gamemode error - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Gamemode error (/showthread.php?tid=538168)



Gamemode error - Buhami - 20.09.2014

Im having some error in my gamemode
pawn Код:
C:\Users\Jyothish\Desktop\Server Files\Filterscripts\Untitled.pwn(1257) : warning 217: loose indentation
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Warning.
why is this showing?


Re: Gamemode error - Buhami - 20.09.2014

SetGameModeText is the problem.


Re: Gamemode error - Ox1gEN - 20.09.2014

Add this ; at the end of SetGameModeText.


Re: Gamemode error - Buhami - 20.09.2014

Quote:
Originally Posted by Ox1gEN
Посмотреть сообщение
Add this ; at the end of SetGameModeText.
already.


Re: Gamemode error - Stinged - 20.09.2014

It's loose indentation.

Loose indentation example:
pawn Код:
public Callback()
{
  Function();
if (Bool == true)
{
Admin();
}
        return 1;
}
Fixing that:
pawn Код:
public Callback()
{
    Function();
    if (Bool == true)
    {
        Admin();
    }
    return 1;
}