Raised This Month: $ Target: $400
 0% 

Compiling Error: 217 loose identation


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
RCC|Dynamite
Senior Member
Join Date: May 2004
Location: Germany
Old 04-26-2006 , 12:50   Compiling Error: 217 loose identation
Reply With Quote #1


*
* Thank you on:
*
* THX to v3x AMXX Moderator
* THX to MaximusBrood who implemented admin immunity
* THX to KoST
*
* to helped my to made my chaos right!!!
*



Code:
/* AMX(x) Mod script. * * (c) Copyright 2002 SuicideDog, Dynamite modifiziert 2006 * This file is provided as is (no warranties). * Simple AWP restriction for CS (this works for 1.6) * sv_noawp <1|0> <activated|deactivated> If the Plugin is activated the AWP is permanently thrown away * sv_nog3sg1 <1|0> <activated|deactivated> If the Plugin is activated the G3SG1 is permanently thrown away * sv_nosg550 <1|0> <activated|deactivated> If the Plugin is activated the SG550 is permanently thrown away * sv_allow_admin_awp <1|0> <activated|deactivated> If the Plugin is activated the AWP can be waived and kept by administrators * sv_allow_admin_g3sg1 <1|0> <activated|deactivated> If the Plugin is activated the G3SG1 can be waived and kept by administrators * sv_allow_admin_sg550 <1|0> <activated|deactivated> If the Plugin is activated the SG550 can be waived and kept by administrators * Add the following cvars in server.cfg in addition around plugin to activate it are kind-moderately deactivated */ /* * sv_noawp "1" * sv_nog3sg1 "1" * sv_nosg550 "1" * sv_allow_admin_awp "0|1" default "0" * sv_allow_admin_g3sg1 "0|1" default "0" * sv_allow_admin_sg550 "0|1" default "0" */ /* * Thank you on: * * THX to v3x AMXX Moderator * THX to MaximusBrood * THX to MaximusBrood who implemented admin immunity * THX to KoST * * to helped my to made my chaos right!!! * * Id of weapons in CS */ #define CSW_P228 1 #define CSW_SCOUT 3 #define CSW_HEGRENADE 4 #define CSW_XM1014 5 #define CSW_C4 6 #define CSW_MAC10 7 #define CSW_AUG 8 #define CSW_SMOKEGRENADE 9 #define CSW_ELITE 10 #define CSW_FIVESEVEN 11 #define CSW_UMP45 12 #define CSW_SG550 13 #define CSW_GALI 14 #define CSW_GALIL 14 #define CSW_FAMAS 15 #define CSW_USP 16 #define CSW_GLOCK18 17 #define CSW_AWP 18 #define CSW_MP5NAVY 19 #define CSW_M249 20 #define CSW_M3 21 #define CSW_M4A1 22 #define CSW_TMP 23 #define CSW_G3SG1 24 #define CSW_FLASHBANG 25 #define CSW_DEAGLE 26 #define CSW_SG552 27 #define CSW_AK47 28 #define CSW_KNIFE 29 #define CSW_P90 30 #include <amxmodx> #include <amxmisc> #define ADMIN_LEVEL ADMIN_CHAT public check_awp() {     if (get_cvar_num("sv_noawp") != 1)         return PLUGIN_CONTINUE         new id = read_data(0)     if(get_cvar_num("sv_allow_admin_awp") == 1 && access(id, ADMIN_LEVEL))     {         return PLUGIN_CONTINUE     }     client_print(id, print_center, "AWP's are not allowed. Find a real gun!")     client_cmd(id, "weapon_g3sg1;wait;wait;wait;drop")     return PLUGIN_CONTINUE } public check_g3sg1() {     if (get_cvar_num("sv_nog3sg1") != 1)         return PLUGIN_CONTINUE           new id = read_data(0)         if(get_cvar_num("sv_allow_admin_auto") == 1 && access(id, ADMIN_LEVEL))     {         return PLUGIN_CONTINUE     }     client_print(id, print_center, "G3SG1's are not allowed. Find a real gun!")     client_cmd(id, "weapon_g3sg1;wait;wait;wait;drop")     return PLUGIN_CONTINUE } public check_sg550() {     if (get_cvar_num("sv_nosg550") != 1)         return PLUGIN_CONTINUE           new id = read_data(0)         if(get_cvar_num("sv_allow_admin_sg550") == 1 && access(id, ADMIN_LEVEL))     {         return PLUGIN_CONTINUE     }     client_print(id, print_center, "SG550's are not allowed. Find a real gun!")     client_cmd(id, "weapon_g3sg1;wait;wait;wait;drop")     return PLUGIN_CONTINUE } public plugin_init(){    register_plugin("Drop Awp","1.1c","Dynamite")    register_event("WeapPickup","check_awp","b","1=18")    register_event("WeapPickup","check_g3sg1","b","1=24")    register_event("WeapPickup","check_sg550","b","1=13")    register_cvar("sv_allow_admin_g3sg1", "0")    register_cvar("sv_allow_admin_sg550", "0")    register_cvar("sv_allow_admin_awp", "0")    register_cvar("sv_nog3sg1","1")    register_cvar("sv_nosg550","1")    register_cvar("sv_noawp","1")    return PLUGIN_CONTINUE }
Plugin - Simple AWP,G3SG1 & SG550 drop
__________________

|###########|
|###########|
|###########|
RCC|Dynamite is offline
Send a message via ICQ to RCC|Dynamite
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 04-26-2006 , 12:51  
Reply With Quote #2

Post in [small] tags for God's sake or I will trash this post.
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
RCC|Dynamite
Senior Member
Join Date: May 2004
Location: Germany
Old 04-26-2006 , 13:36  
Reply With Quote #3

Big sorry i have change it!
__________________

|###########|
|###########|
|###########|
RCC|Dynamite is offline
Send a message via ICQ to RCC|Dynamite
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 04-26-2006 , 14:17  
Reply With Quote #4

1. You do not need those weapon defines.
2. Get rid of the "llama" variable and replace it with "id".
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
MaximusBrood
Veteran Member
Join Date: Sep 2005
Location: The Netherlands
Old 04-26-2006 , 14:44  
Reply With Quote #5

I made an updated version of this same plugin a long time ago, features admin immunity:

Code:
//Original Author is unknown, thats why I put my name in it //Please hit me @ maximusbrood[{AT}]gmail{[DOT]}com if you are the author #include <amxmodx> #include <amxmisc> #define ADMIN_LEVEL ADMIN_CHAT public plugin_init() {     register_plugin("Drop Weapons", "0.2", "MaximusBrood")         register_event("WeapPickup","check_awp","b","1=18")     register_event("WeapPickup","check_g3sg1","b","1=24")         register_cvar("sv_noawp","0")     register_cvar("sv_noauto","1")     register_cvar("sv_allow_admin_awp", "1")     register_cvar("sv_allow_admin_auto", "0") } public check_g3sg1() {     if (get_cvar_num("sv_noauto") != 1)         return PLUGIN_CONTINUE           new id = read_data(0)         if(get_cvar_num("sv_allow_admin_auto") == 1 && access(id, ADMIN_LEVEL))     {         return PLUGIN_CONTINUE     }     client_print(id, print_center, "NOOB!!! Autosniper's are not allowed. Find a real gun!")     client_cmd(id, "weapon_g3sg1;wait;wait;wait;drop")     return PLUGIN_CONTINUE } public check_awp() {     if (get_cvar_num("sv_noawp") != 1)         return PLUGIN_CONTINUE         new id = read_data(0)     if(get_cvar_num("sv_allow_admin_awp") == 1 && access(id, ADMIN_LEVEL))     {         return PLUGIN_CONTINUE     }         client_print(id, print_center, "AWPs are not allowed on this map!")     client_cmd(id, "weapon_awp;wait;wait;wait;drop")     return PLUGIN_CONTINUE }
__________________
Released six formerly private plugins. Not active here since ages.
MaximusBrood is offline
RCC|Dynamite
Senior Member
Join Date: May 2004
Location: Germany
Old 04-26-2006 , 15:13  
Reply With Quote #6

Quote:
Originally Posted by v3x
1. You do not need those weapon defines.
2. Get rid of the "llama" variable and replace it with "id".
I replace "llama" it with "id"

Code:
//AMXXPC compile.exe // by the AMX Mod X Dev Team //// no_awp.sma // H:\dedicated-server\cstrike\addons\amxmodx\scripting\no_awp.sma(61) : warning  217: loose indentation // H:\dedicated-server\cstrike\addons\amxmodx\scripting\no_awp.sma(62) : warning  217: loose indentation // H:\dedicated-server\cstrike\addons\amxmodx\scripting\no_awp.sma(68) : warning  217: loose indentation // H:\dedicated-server\cstrike\addons\amxmodx\scripting\no_awp.sma(69) : warning  217: loose indentation // Header size:            300 bytes // Code size:             1204 bytes // Data size:             1644 bytes // Stack/heap size:      16384 bytes; estimated max. usage=175 cells (700 bytes) // Total requirements:   19532 bytes // // 4 Warnings. // Done. // // Compilation Time: 0,14 sec // ---------------------------------------- Press enter to exit ...
__________________

|###########|
|###########|
|###########|
RCC|Dynamite is offline
Send a message via ICQ to RCC|Dynamite
KoST
Senior Member
Join Date: Jul 2005
Old 04-26-2006 , 15:30  
Reply With Quote #7

try this: (only fixed the loose indentation warnings):

Code:
/* AMX(x) Mod script. * * (c) Copyright 2002 SuicideDog, Dynamite modifiziert 2006 * This file is provided as is (no warranties). * Simple AWP restriction for CS (this works for 1.6) * sv_noawp <1|0> <activated|deactivated> If the Plugin is activated the AWP is permanently thrown away * sv_nog3sg1 <1|0> <activated|deactivated> If the Plugin is activated the G3SG1 is permanently thrown away * sv_nosg550 <1|0> <activated|deactivated> If the Plugin is activated the SG550 is permanently thrown away * * Add the following cvars in server.cfg in addition around plugin to activate it are kind-moderately deactivated * sv_noawp "1" * sv_nog3sg1 "1" * sv_nosg550 "1" * */ /* Id of weapons in CS */ #define CSW_P228 1 #define CSW_SCOUT 3 #define CSW_HEGRENADE 4 #define CSW_XM1014 5 #define CSW_C4 6 #define CSW_MAC10 7 #define CSW_AUG 8 #define CSW_SMOKEGRENADE 9 #define CSW_ELITE 10 #define CSW_FIVESEVEN 11 #define CSW_UMP45 12 #define CSW_SG550 13 #define CSW_GALI 14 #define CSW_GALIL 14 #define CSW_FAMAS 15 #define CSW_USP 16 #define CSW_GLOCK18 17 #define CSW_AWP 18 #define CSW_MP5NAVY 19 #define CSW_M249 20 #define CSW_M3 21 #define CSW_M4A1 22 #define CSW_TMP 23 #define CSW_G3SG1 24 #define CSW_FLASHBANG 25 #define CSW_DEAGLE 26 #define CSW_SG552 27 #define CSW_AK47 28 #define CSW_KNIFE 29 #define CSW_P90 30 #include <amxmodx> public check_awp(id) {       if (get_cvar_num("sv_noawp")!=1) return PLUGIN_CONTINUE       new llama = read_data(0)         client_print(llama,print_center,"AWPs are not allowed. Find a real gun!")       client_cmd(llama,"weapon_awp;wait;wait;wait;drop")       client_cmd( id, "drop weapon_awp" );         return PLUGIN_CONTINUE } public check_g3sg1(id) {     if (get_cvar_num("sv_nog3sg1")!=1) return PLUGIN_CONTINUE     new llama = read_data(0)         client_print(llama,print_center,"G3SG1 are not allowed. Find a real gun!")     client_cmd(llama,"weapon_g3sg1;wait;wait;wait;drop")     return PLUGIN_CONTINUE } public check_sg550(id) {     if (get_cvar_num("sv_nosg550")!=1) return PLUGIN_CONTINUE     new llama = read_data(0)         client_print(llama,print_center,"SG550 are not allowed. Find a real gun!")     client_cmd(llama,"weapon_sg550;wait;wait;wait;drop")     return PLUGIN_CONTINUE } public plugin_init(){    register_plugin("Drop Awp","1.1b","Dynamite")    register_event("WeapPickup","check_awp","b","1=18")    register_event("WeapPickup","check_g3sg1","b","1=24")    register_event("WeapPickup","check_sg550","b","1=13")    register_cvar("sv_noawp","1")    register_cvar("sv_nog3sg1","1")    register_cvar("sv_nosg550","1")    return PLUGIN_CONTINUE }
__________________
KoST is offline
RCC|Dynamite
Senior Member
Join Date: May 2004
Location: Germany
Old 04-26-2006 , 15:42  
Reply With Quote #8

Thank you very much KoST
__________________

|###########|
|###########|
|###########|
RCC|Dynamite is offline
Send a message via ICQ to RCC|Dynamite
KoST
Senior Member
Join Date: Jul 2005
Old 04-26-2006 , 15:51  
Reply With Quote #9

you are welcome !

ps: loose indentation -> de:Einrückung
__________________
KoST is offline
RCC|Dynamite
Senior Member
Join Date: May 2004
Location: Germany
Old 04-26-2006 , 16:23  
Reply With Quote #10

Quote:
Originally Posted by KoST
you are welcome !

ps: loose indentation -> de:Einrückung
I know -> de: Ich weiss !!! :p

I use ultra Edit 32 it is not the correct tool for me I has always difficulties also loose indentation -> de:Einrückung!!!

* Thank you on:
*
* THX to v3x AMXX Moderator
* THX to MaximusBrood add his ADMIN_LEVEL ADMIN_CHAT
* THX to KoST
*
* to helped my to made my chaos right!!!
*



Code:
/* AMX(x) Mod script. * * (c) Copyright 2002 SuicideDog, Dynamite modifiziert 2006 * This file is provided as is (no warranties). * Simple AWP restriction for CS (this works for 1.6) * sv_noawp <1|0> <activated|deactivated> If the Plugin is activated the AWP is permanently thrown away * sv_nog3sg1 <1|0> <activated|deactivated> If the Plugin is activated the G3SG1 is permanently thrown away * sv_nosg550 <1|0> <activated|deactivated> If the Plugin is activated the SG550 is permanently thrown away * sv_allow_admin_awp <1|0> <activated|deactivated> If the Plugin is activated the AWP can be waived and kept by administrators * sv_allow_admin_g3sg1 <1|0> <activated|deactivated> If the Plugin is activated the G3SG1 can be waived and kept by administrators * sv_allow_admin_sg550 <1|0> <activated|deactivated> If the Plugin is activated the SG550 can be waived and kept by administrators * Add the following cvars in server.cfg in addition around plugin to activate it are kind-moderately deactivated */ /* * sv_noawp "1" * sv_nog3sg1 "1" * sv_nosg550 "1" * sv_allow_admin_awp "0|1" default "0" * sv_allow_admin_g3sg1 "0|1" default "0" * sv_allow_admin_sg550 "0|1" default "0" */ /* <b>* Thank you on: * * THX to v3x AMXX Moderator * THX to MaximusBrood add his ADMIN_LEVEL ADMIN_CHAT * THX to KoST * * to helped my to made my chaos right!!! * </b> * Id of weapons in CS */ #define CSW_P228 1 #define CSW_SCOUT 3 #define CSW_HEGRENADE 4 #define CSW_XM1014 5 #define CSW_C4 6 #define CSW_MAC10 7 #define CSW_AUG 8 #define CSW_SMOKEGRENADE 9 #define CSW_ELITE 10 #define CSW_FIVESEVEN 11 #define CSW_UMP45 12 #define CSW_SG550 13 #define CSW_GALI 14 #define CSW_GALIL 14 #define CSW_FAMAS 15 #define CSW_USP 16 #define CSW_GLOCK18 17 #define CSW_AWP 18 #define CSW_MP5NAVY 19 #define CSW_M249 20 #define CSW_M3 21 #define CSW_M4A1 22 #define CSW_TMP 23 #define CSW_G3SG1 24 #define CSW_FLASHBANG 25 #define CSW_DEAGLE 26 #define CSW_SG552 27 #define CSW_AK47 28 #define CSW_KNIFE 29 #define CSW_P90 30 #include <amxmodx> #include <amxmisc> #define ADMIN_LEVEL ADMIN_CHAT public check_awp() {     if (get_cvar_num("sv_noawp") != 1)         return PLUGIN_CONTINUE         new id = read_data(0)     if(get_cvar_num("sv_allow_admin_awp") == 1 && access(id, ADMIN_LEVEL))     {         return PLUGIN_CONTINUE     }     client_print(id, print_center, "AWP's are not allowed. Find a real gun!")     client_cmd(id, "weapon_g3sg1;wait;wait;wait;drop")     return PLUGIN_CONTINUE } public check_g3sg1() {     if (get_cvar_num("sv_nog3sg1") != 1)         return PLUGIN_CONTINUE           new id = read_data(0)         if(get_cvar_num("sv_allow_admin_auto") == 1 && access(id, ADMIN_LEVEL))     {         return PLUGIN_CONTINUE     }     client_print(id, print_center, "G3SG1's are not allowed. Find a real gun!")     client_cmd(id, "weapon_g3sg1;wait;wait;wait;drop")     return PLUGIN_CONTINUE } public check_sg550() {     if (get_cvar_num("sv_nosg550") != 1)         return PLUGIN_CONTINUE           new id = read_data(0)         if(get_cvar_num("sv_allow_admin_sg550") == 1 && access(id, ADMIN_LEVEL))     {         return PLUGIN_CONTINUE     }     client_print(id, print_center, "SG550's are not allowed. Find a real gun!")     client_cmd(id, "weapon_g3sg1;wait;wait;wait;drop")     return PLUGIN_CONTINUE } public plugin_init(){    register_plugin("Drop Awp","1.1c","Dynamite")    register_event("WeapPickup","check_awp","b","1=18")    register_event("WeapPickup","check_g3sg1","b","1=24")    register_event("WeapPickup","check_sg550","b","1=13")    register_cvar("sv_allow_admin_g3sg1", "0")    register_cvar("sv_allow_admin_sg550", "0")    register_cvar("sv_allow_admin_awp", "0")    register_cvar("sv_nog3sg1","1")    register_cvar("sv_nosg550","1")    register_cvar("sv_noawp","1")    return PLUGIN_CONTINUE }
Plugin - Simple AWP,G3SG1 & SG550 drop
__________________

|###########|
|###########|
|###########|
RCC|Dynamite is offline
Send a message via ICQ to RCC|Dynamite
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 05:11.


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