End #pragma? - 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: End #pragma? (
/showthread.php?tid=499740)
End #pragma? -
Tagathron - 09.03.2014
Is there a way to determine a #pragma scope?
For example, if i put
it will remove the indentation warnings.
But what if i wanted for it to be valid just in the scope I put?
(For example; i have lines in code for mappings only, when i paste the mappings code it doesnt auto indent, and doing it myself would just waste time.I just need the indentation warnings to be removed in the lines where the mapping code is)
Re: End #pragma? -
Matess - 09.03.2014
Yeah try put #pragma tabsize 0 where your code starts.
and #pragma tabsize 4 where it ends