open.mp forum
[Pawn] [SOLVED] How fix warning 217: loose indentation without Pragma Syntax? - Printable Version

+ open.mp forum (https://forum.open.mp)
-- Forum: SA-MP (https://forum.open.mp/forumdisplay.php?fid=3)
--- Forum: Pawn Scripting (https://forum.open.mp/forumdisplay.php?fid=10)
--- Thread: [Pawn] [SOLVED] How fix warning 217: loose indentation without Pragma Syntax? (/showthread.php?tid=2020)



[SOLVED] How fix warning 217: loose indentation without Pragma Syntax? - PutuSuhartawan - 2021-05-15

SOLUTION from:

(2021-05-15, 03:26 PM)AbyssMorgan Wrote: Example of 217 warning

Code:
stock my_function(arg1,arg2){

new something = random(25);

something = arg1 * arg2; //warning loose indentation due to missing tab

return something;

}



stock my_function(arg1,arg2)

{

new something = random(25);

something = arg1 * arg2; //warning loose indentation due to missing tab

return something;

}





Proof title better than problem description :

That means the newbie?code is bad.? Hiding issues doesn't solve them, it just means a newbie ignoring the bugs.

In the mind, i just need to remove the upper tab size from the script margin. But i don't know actually the great for solved all about the warning in pawn compiler?

Sir do you have a pack of module how to fix all of the warnings in the pawn compiler? Please share the module of all warnings is very important to solved the warning.


RE: Help! How fix warning 217: loose indentation without Pragma Syntax? - Y_Less - 2021-05-15

https://en.wikipedia.org/wiki/Indentation_style#Allman_style


RE: Help! How fix warning 217: loose indentation without Pragma Syntax? - AbyssMorgan - 2021-05-15

Example of 217 warning
Code:
stock my_function(arg1,arg2){
    new something = random(25);
something = arg1 * arg2; //warning loose indentation due to missing tab
    return something;
}

stock my_function(arg1,arg2)
{
    new something = random(25);
something = arg1 * arg2; //warning loose indentation due to missing tab
    return something;
}