Raised This Month: $ Target: $400
 0% 

loose identation error


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 


Thread Tools
Display Modes

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