This site is a testing version, but all data is shared with the live forum.


Raised This Month: $12 Target: $400
 3% 

Plugin error


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Artizy
Member
Join Date: Jun 2011
Location: Milan, Italy.
Old 03-26-2016 , 15:29   Plugin error
Reply With Quote #1

Hello, i recive this error:
Code:
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team

/tmp/textnLxVih.sma(25) : warning 217: loose indentation
Header size:            412 bytes
Code size:             1632 bytes
Data size:              596 bytes
Stack/heap size:      16384 bytes; estimated max. usage=781 cells (3124 bytes)
Total requirements:   19024 bytes

1 Warning.
Done.
This is the plugin:
Code:
#include <amxmodx> 
#include <amxmisc> 
#include <cstrike> 

public plugin_init( ) { 
    register_plugin( "AllSpec", "1.0", "Artizy" ); 
     
    register_concmd( "amx_specall", "CmdAllSpec", ADMIN_KICK ); 
} 

public CmdAllSpec( id, iLevel, iCid ) { 
    if( !cmd_access( id, iLevel, iCid, 1 ) ) 
        return PLUGIN_HANDLED; 
     
    new iPlayers[ 32 ], iNum; 
    get_players( iPlayers, iNum ); 
     
    for( new i; i < iNum; i++ ) { 
        id = iPlayers[ i ]; 
        cs_set_user_team(id, CS_TEAM_SPECTATOR);
        user_kill(id, 1);
        server_cmd("sv_restart 1");
        client_print(0,print_chat,"TEXT");  
}  
        return PLUGIN_HANDLED;
}
What is the problem ?
Artizy is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 03-26-2016 , 15:39   Re: Plugin error
Reply With Quote #2

That's a warning not an error, just ignore it. It will not affect the plugin.
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 03-26-2016 , 15:51   Re: Plugin error
Reply With Quote #3

Quote:
Originally Posted by wickedd View Post
That's a warning not an error, just ignore it. It will not affect the plugin.
But if you want to remove it:

PHP Code:
#include <amxmodx> 
#include <amxmisc> 
#include <cstrike> 
 
public plugin_init( ) 

 
register_plugin"AllSpec""1.0""Artizy" ); 
     
 
register_concmd"amx_specall""CmdAllSpec"ADMIN_KICK ); 

public 
CmdAllSpecidiLeveliCid 

 if( !
cmd_accessidiLeveliCid) ) 
  return 
PLUGIN_HANDLED
     
 new 
iPlayers32 ], iNum,all
 get_players
iPlayersiNum ); 
     
 for( new 
iiNumi++ ) 
 { 
  
all iPlayers]; 
  
cs_set_user_team(allCS_TEAM_SPECTATOR);
  
user_silentkill(all);
  
server_cmd("sv_restart 1");
  
client_print(0,print_chat,"TEXT")  
 }  
 return 
PLUGIN_HANDLED;

__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
Artizy
Member
Join Date: Jun 2011
Location: Milan, Italy.
Old 03-26-2016 , 16:34   Re: Plugin error
Reply With Quote #4

Quote:
Originally Posted by wickedd View Post
That's a warning not an error, just ignore it. It will not affect the plugin.
Quote:
Originally Posted by EFFx View Post
But if you want to remove it:

PHP Code:
#include <amxmodx> 
#include <amxmisc> 
#include <cstrike> 
 
public plugin_init( ) 

 
register_plugin"AllSpec""1.0""Artizy" ); 
     
 
register_concmd"amx_specall""CmdAllSpec"ADMIN_KICK ); 

public 
CmdAllSpecidiLeveliCid 

 if( !
cmd_accessidiLeveliCid) ) 
  return 
PLUGIN_HANDLED
     
 new 
iPlayers32 ], iNum,all
 get_players
iPlayersiNum ); 
     
 for( new 
iiNumi++ ) 
 { 
  
all iPlayers]; 
  
cs_set_user_team(allCS_TEAM_SPECTATOR);
  
user_silentkill(all);
  
server_cmd("sv_restart 1");
  
client_print(0,print_chat,"TEXT")  
 }  
 return 
PLUGIN_HANDLED;

Thanks guys !
Artizy is offline
Artifact
Veteran Member
Join Date: Jul 2010
Old 03-26-2016 , 17:13   Re: Plugin error
Reply With Quote #5

Spaces is important for compiler and sometimes for code too.
Put your code in AmxModx Studio and hold CTRL + I. That's it.
__________________

Last edited by Artifact; 03-26-2016 at 17:16.
Artifact 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 22:40.


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