SA-MP Forums Archive
[Help] Not sure about this..- Indentation/Include - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [Help] Not sure about this..- Indentation/Include (/showthread.php?tid=112876)



[Help] Not sure about this..- Indentation/Include - Ace_Menace - 10.12.2009

Basically the include file is causing the line below it to give a loose indentation warning
Does it matter if I put the classes include under this, or in my Include handler?


pawn Код:
public OnGameModeInit()
{
#include "inc/classes.V"
    SetGameModeText("PRJ.V - 0.00");
    return 1;
}



Re: [Help] Not sure about this..- Indentation/Include - Malice - 10.12.2009

You could just indent it right?

pawn Код:
public OnGameModeInit()
{
     #include "inc/classes.V"
    SetGameModeText("PRJ.V - 0.00");
    return 1;
}



Re: [Help] Not sure about this..- Indentation/Include - Ace_Menace - 10.12.2009

Originally that is how I had it, unfortunately that doesn't work.

I got confused with the [ pawn ] tag..


Re: [Help] Not sure about this..- Indentation/Include - Donny_k - 10.12.2009

Indent the lines in the include, it's "" and not <> this means wherever you place your include line it starts reading from that position (hint, move the lines below if it doesn't work).


Re: [Help] Not sure about this..- Indentation/Include - Ace_Menace - 10.12.2009

Quote:
Originally Posted by Donny
Indent the lines in the include, it's "" and not <> this means wherever you place your include line it starts reading from that position (hint, move the lines below if it doesn't work).
I have the "", and I will try to move it towards the bottom, thanks for your response.

EDIT: Didn't Work...
pawn Код:
public OnGameModeInit()
{
    SetGameModeText("PRJ.V - 0.00");
    #include "inc/classes.V"
    return 1;
}