AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   loose identation? (https://forums.alliedmods.net/showthread.php?t=12812)

WaZZeR++ 04-25-2005 16:30

loose identation?
 
1 Attachment(s)
Code:

bankickmenu.sma(16) : warning 217: loose indentation
bankickmenu.sma(19) : warning 217: loose indentation
bankickmenu.sma(100) : warning 217: loose indentation
bankickmenu.sma(103) : warning 217: loose indentation
bankickmenu.sma(115) : warning 217: loose indentation
bankickmenu.sma(197) : warning 217: loose indentation

what does this mean?

Ced 04-25-2005 16:31

means ur spacing isn't right in some places but has no effect
if u type #pragma tabsize 0 at the top near your includes, all the warnings will go away

WaZZeR++ 04-25-2005 16:37

so the plugin works, even if i get this warnings?

Belsebub 04-25-2005 16:39

yes

WaZZeR++ 04-25-2005 16:40

well, then my first plugin is done :)

will test it tomorro.

night

v3x 04-25-2005 16:51

Or you could just fix them.. Don't use spaces and tabs combined, that's just sloppy..

Code:
public plugin_init() {         register_plugin("Vote Kick/Ban Menu","1.1","WaZZeR")     register_menucmd(register_menuid("\rVote Ban Menu:"),1023,"actionVoteBanMenu")     register_menucmd(register_menuid("\rVote Kick Menu:"),1023,"actionVoteKickMenu")     // Convert the spaces into 1 tab         register_clcmd("amx_votebanmenu","cmdVoteBanMenu",ADMIN_LEVEL_A,"- displays vote ban menu")         register_clcmd("amx_votekickmenu","cmdVoteKickMenu",ADMIN_LEVEL_A,"- displays vote kick menu") }

Code:
// ..             new authid[32] // Take away 1 tab             get_user_authid(player,authid,31) // Take away 1 tab         new userid = get_user_userid(   player)

Code:
// ..             server_exec()             // Make it 1 tab

Code:
// ..             new userid = get_user_userid(player)             // Make it one tab

Everything has to be consistent. :)

slurpycof 04-25-2005 18:57

or you could use avalanches work and sweat to save you some

http://www.avalanche.epherion.com/indenter/

v3x 04-25-2005 19:02

Yea, true.. Forgot about that.

WaZZeR++ 04-26-2005 13:15

ohhh, nice, in my favorits now :p

ZiP* 04-26-2005 15:49

And you could do this:

Code:
#pragma tabsize 0


All times are GMT -4. The time now is 16:48.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.