Raised This Month: $ Target: $400
 0% 

loose identation error


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Chaotic
Junior Member
Join Date: Nov 2004
Old 10-06-2006 , 22:14   loose identation error
Reply With Quote #1

I tryed changing something in the adminmodx plugin. In the exec part, I added immunity check for amx_exec, amx_execteam without problem.

Now I am trying to add it to amx_execall.

I got something to work, but when compiling I am getting an loose identation error at line 515 (look below). The immunity check works, but it still does bother me. I just started coding and I want to know what I did wrong.

Here is what I have, if there is an easiest way, please let me know

----
Code:
// Get the info on the caller     new nameCalled[32], steamCalled[32]     get_user_name(id, nameCalled, 31)     get_user_authid(id, steamCalled, 31)         if(equal(cmd, "all"))     {     get_players(players, totalPlayers, "a")         for(counter = 0; counter < totalPlayers; counter++)         {             if(!(get_user_flags(players[counter])&IMMUNE))             {                 client_cmd(players[counter], toexec)             }         }
----

I am pretty sure it as do to something with the FOR and the counter, line 515 is in this one

for(counter = 0; counter < totalPlayers; counter++)

added the attachement, I don't know how to add it on the forum, sorry
Attached Files
File Type: txt note2.txt (215 Bytes, 126 views)

Last edited by Chaotic; 10-07-2006 at 00:04.
Chaotic is offline
commonbullet
Veteran Member
Join Date: Oct 2005
Old 10-06-2006 , 22:19   Re: loose identation error
Reply With Quote #2

http://en.wikipedia.org/wiki/Indent_style
commonbullet is offline
Send a message via ICQ to commonbullet Send a message via MSN to commonbullet
Chaotic
Junior Member
Join Date: Nov 2004
Old 10-06-2006 , 23:01   Re: loose identation error
Reply With Quote #3

I was gonna make a sarcastic comment on how unhelpfull you were, but then I realised that it was my fault and that the way I posted my code would have made it impossible for you to correct me.

So thx
Chaotic is offline
Zenith77
Veteran Member
Join Date: Aug 2005
Old 10-06-2006 , 23:20   Re: loose identation error
Reply With Quote #4

You're missing a bracket. Also, place your code in "[small]" tags.
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
commonbullet
Veteran Member
Join Date: Oct 2005
Old 10-06-2006 , 23:27   Re: loose identation error
Reply With Quote #5

Sorry, I saw the plain code and the post title, I thought you had problems with identing. Like Zenith said, use small tags when you paste code in here.
commonbullet is offline
Send a message via ICQ to commonbullet Send a message via MSN to commonbullet
dayletter
Member
Join Date: Jun 2006
Old 10-07-2006 , 16:08   Re: loose identation error
Reply With Quote #6

Code:
    if(equal(cmd, "all"))
    {
        get_players(players, totalPlayers, "a")
 
        for(counter = 0; counter < totalPlayers; counter++)
dayletter is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:53.


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