Burgershot
  • Home
  • Members
  • Team
  • Help
  • Search
  • Register
  • Login
  • Home
  • Members
  • Help
  • Search
Burgershot SA-MP Pawn Scripting [Pawn] [SOLVED] How fix warning 217: loose indentation without Pragma Syntax?

 
  • 0 Vote(s) - 0 Average
Pawn [SOLVED] How fix warning 217: loose indentation without Pragma Syntax?
PutuSuhartawan
Offline

Burgershot Member
Posts: 120
Threads: 52
Joined: Nov 2020
Reputation: 1
Location: Indonesia
#1
2021-05-15, 11:24 AM (This post was last modified: 2021-05-15, 06:02 PM by PutuSuhartawan.)
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.
Y_Less
Offline

Administrator

Posts: 323
Threads: 16
Joined: Feb 2019
Reputation: 90
#2
2021-05-15, 02:00 PM
https://en.wikipedia.org/wiki/Indentation_style#Allman_style
AbyssMorgan
Offline

Burgershot Member
Posts: 63
Threads: 25
Joined: Apr 2021
Reputation: 8
Location: Poland
#3
2021-05-15, 03:26 PM (This post was last modified: 2021-05-15, 03:27 PM by AbyssMorgan.)
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;
}
« Next Oldest | Next Newest »



  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Burgershot - Powered by our Community and MyBB Original Theme by Emerald

Linear Mode
Threaded Mode