Raised This Month: $ Target: $400
 0% 

Tons Of Errors


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Dizzy
Veteran Member
Join Date: Jun 2004
Location: Massachusetts
Old 01-18-2005 , 18:47   Tons Of Errors
Reply With Quote #1

I can't find out what's wrong...

Here's The Script

I Get 26 Errors (Invalid Functions, No Header?, and an Azzumed zero)

1 Header
1 Azzumed Zero
and the rest were Invalid Functions

Tell Me If You Find AnyThing Obvious

Thanks!

Code:
 /*****************************************************************  Monster Spawner!  * By: Dizzy  * Created 1/18/05  *All Rights Reserved  *  *DESCRIPTION -  * Summons Monsters On Admin_Level_A Client Command  *  * CVARS -  * sv_ms (0|1) (Off|On)  *  *CLCMDS -  * /agrunt  * /apache  * /barney  * /bigmomma  * /bullsquid  * /hassassin  * /headcrab  * /hgrunt  * /houndeye  * /islave  * /contoller  * /scientist  * /snark  * /zombie  *  *REQUIREMENTS -  *monster_plugin  *****************************************************************/  //INCLUDES  //-------------------------------------------------------------------------------------  #include <amxmodx>  //-------------------------------------------------------------------------------------  //NEWS  //-------------------------------------------------------------------------------------  new gPlayerPosition  //-------------------------------------------------------------------------------------  public plugin_init() {     //-------------------------------------------------------------------------------------     //PLUGIN INFO     //-------------------------------------------------------------------------------------     register_plugin("Monster Spawner","1.0","Dizzy")     //-------------------------------------------------------------------------------------     //CVARS     //-------------------------------------------------------------------------------------     register_cvar("sv_ms","1")     //-------------------------------------------------------------------------------------     //CLCMDS     //-------------------------------------------------------------------------------------     register_clcmd("say /agrunt","agrunt", ADMIN_LEVEL_A)     register_clcmd("say /apache","apache", ADMIN_LEVEL_A)     register_clcmd("say /barney","barney", ADMIN_LEVEL_A)     register_clcmd("say /bigmomma","bigmomma", ADMIN_LEVEL_A)     register_clcmd("say /bullsquid","bullsquid", ADMIN_LEVEL_A)     register_clcmd("say /hassassin","hassassin", ADMIN_LEVEL_A)     register_clcmd("say /headcrab","headcrab", ADMIN_LEVEL_A)     register_clcmd("say /hgrunt","hgrunt", ADMIN_LEVEL_A)     register_clcmd("say /houndeye","houndeye", ADMIN_LEVEL_A)     register_clcmd("say /islave","islave", ADMIN_LEVEL_A)     register_clcmd("say /controller","controller", ADMIN_LEVEL_A)     register_clcmd("say /scientist","scientist", ADMIN_LEVEL_A)     register_clcmd("say /snark","snark", ADMIN_LEVEL_A)     register_clcmd("say /zombie","zombie", ADMIN_LEVEL_A)  }  //-------------------------------------------------------------------------------------  //PLUGIN SPAWN  //-------------------------------------------------------------------------------------  public spawn_monster(id,monstername[]) {     if (get_cvar_num("sv_ms")==0)     return PLUGIN_HANDLED     if (is_user_alive(id)) {         emit_sound(id, CHAN_STATIC, "ambience/port_suckin1.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)         server_cmd("monster %s",monstername)     }     return PLUGIN_HANDLED  }  //-------------------------------------------------------------------------------------  //AGRUNT  //-------------------------------------------------------------------------------------  public agrunt(id) {     if (get_cvar_num("sv_ms")==0)     return PLUGIN_HANDLED     if (is_user_alive(id)) {         emit_sound(id, CHAN_STATIC, "ambience/port_suckin1.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)         server_cmd("monster agrunt", id)     }     return PLUGIN_HANDLED  }  //-------------------------------------------------------------------------------------  //APACHE  //-------------------------------------------------------------------------------------  public apache(id) {     if (get_cvar_num("sv_ms")==0)     return PLUGIN_HANDLED     if (is_user_alive(id)) {         emit_sound(id, CHAN_STATIC, "ambience/port_suckin1.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)         server_cmd("monster apache", id)     }     return PLUGIN_HANDLED  }  //-------------------------------------------------------------------------------------  //BARNEY  //-------------------------------------------------------------------------------------  public barney(id) {     if (get_cvar_num("sv_ms")==0)     return PLUGIN_HANDLED     if (is_user_alive(id)) {         emit_sound(id, CHAN_STATIC, "ambience/port_suckin1.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)         server_cmd("monster barney", id)     }     return PLUGIN_HANDLED  }  //-------------------------------------------------------------------------------------  //BIGMOMMA  //-------------------------------------------------------------------------------------  public bigmomma(id) {     if (get_cvar_num("sv_ms")==0)     return PLUGIN_HANDLED     if (is_user_alive(id)) {         emit_sound(id, CHAN_STATIC, "ambience/port_suckin1.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)         server_cmd("monster bigmomma", id)     }     return PLUGIN_HANDLED  }  //-------------------------------------------------------------------------------------  //BULLSQUID  //-------------------------------------------------------------------------------------  public bullsquid(id) {     if (get_cvar_num("sv_ms")==0)     return PLUGIN_HANDLED     if (is_user_alive(id)) {         emit_sound(id, CHAN_STATIC, "ambience/port_suckin1.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)         server_cmd("monster bullsquid", id)     }     return PLUGIN_HANDLED  }  //-------------------------------------------------------------------------------------  //HASSASSIN  //-------------------------------------------------------------------------------------  public hassassin(id) {     if (get_cvar_num("sv_ms")==0)     return PLUGIN_HANDLED     if (is_user_alive(id)) {         emit_sound(id, CHAN_STATIC, "ambience/port_suckin1.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)         server_cmd("monster hassassin", id)     }     return PLUGIN_HANDLED  }  //-------------------------------------------------------------------------------------  //HEADCRAB  //-------------------------------------------------------------------------------------  public headcrab(id) {     if (get_cvar_num("sv_ms")==0)     return PLUGIN_HANDLED     if (is_user_alive(id)) {         emit_sound(id, CHAN_STATIC, "ambience/port_suckin1.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)         server_cmd("monster headcrab", id)     }     return PLUGIN_HANDLED  }  //-------------------------------------------------------------------------------------  //HGRUNT  //-------------------------------------------------------------------------------------  public hgrunt(id) {     if (get_cvar_num("sv_ms")==0)     return PLUGIN_HANDLED     if (is_user_alive(id)) {         emit_sound(id, CHAN_STATIC, "ambience/port_suckin1.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)         server_cmd("monster hgrunt", id)     }     return PLUGIN_HANDLED  }  //-------------------------------------------------------------------------------------  //HOUNDEYE  //-------------------------------------------------------------------------------------  public houndeye(id) {     if (get_cvar_num("sv_ms")==0)     return PLUGIN_HANDLED     if (is_user_alive(id)) {         emit_sound(id, CHAN_STATIC, "ambience/port_suckin1.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)         server_cmd("monster houndeye", id)     }     return PLUGIN_HANDLED  }  //-------------------------------------------------------------------------------------  //ISLAVE  //-------------------------------------------------------------------------------------  public islave(id) {     if (get_cvar_num("sv_ms")==0)     return PLUGIN_HANDLED     if (is_user_alive(id)) {         emit_sound(id, CHAN_STATIC, "ambience/port_suckin1.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)         server_cmd("monster islave", id)     }     return PLUGIN_HANDLED  }  //-------------------------------------------------------------------------------------  //CONTROLLER  //-------------------------------------------------------------------------------------  public controller(id) {     if (get_cvar_num("sv_ms")==0)     return PLUGIN_HANDLED     if (is_user_alive(id)) {         emit_sound(id, CHAN_STATIC, "ambience/port_suckin1.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)         server_cmd("monster controller", id)     }     return PLUGIN_HANDLED  }  //-------------------------------------------------------------------------------------  //SCIENTIST  //-------------------------------------------------------------------------------------  public scientist(id) {     if (get_cvar_num("sv_ms")==0)     return PLUGIN_HANDLED     if (is_user_alive(id)) {         emit_sound(id, CHAN_STATIC, "ambience/port_suckin1.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)         server_cmd("monster scientist", id)     }     return PLUGIN_HANDLED  }  //-------------------------------------------------------------------------------------  //SNARK  //-------------------------------------------------------------------------------------  public snark(id) {     if (get_cvar_num("sv_ms")==0)     return PLUGIN_HANDLED     if (is_user_alive(id)) {         emit_sound(id, CHAN_STATIC, "ambience/port_suckin1.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)         server_cmd("monster snark", id)     }     return PLUGIN_HANDLED  }  //-------------------------------------------------------------------------------------  //ZOMBIE  //-------------------------------------------------------------------------------------  public zombie(id) {     if (get_cvar_num("sv_ms")==0)     return PLUGIN_HANDLED     if (is_user_alive(id)) {         emit_sound(id, CHAN_STATIC, "ambience/port_suckin1.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)         server_cmd("monster zombie", id)     }     return PLUGIN_HANDLED  }  //-------------------------------------------------------------------------------------
__________________
My Plugins

Purchase Mod - Stable
Type Sounds - Stable
Monster Spawner - Stable
Nade Giver - Maintenance
Dizzy is offline
Send a message via AIM to Dizzy
Ced
Member
Join Date: Oct 2004
Old 01-18-2005 , 19:47  
Reply With Quote #2

Code:
/***************************************************************** Attack Of The Clones! * By: Dizzy * Created 1/18/05 *All Rights Reserved * *DESCRIPTION - * Summons Monsters On Admin_Level_A Client Command * * CVARS - * sv_aotc (0|1) (Off|On) * *CLCMDS - */agrunt */apache */barney */bigmomma */bullsquid */hassassin */headcrab */hgrunt */houndeye */islave */contoller */scientist */snark */zombie * *REQUIREMENTS - *monster_plugin

shouldn't it be

Code:
/***************************************************************** Attack Of The Clones! * By: Dizzy * Created 1/18/05 *All Rights Reserved * *DESCRIPTION - * Summons Monsters On Admin_Level_A Client Command * * CVARS - * sv_aotc (0|1) (Off|On) * *CLCMDS - *agrunt *apache *barney *bigmomma *bullsquid *hassassin *headcrab *hgrunt *houndeye *islave *contoller *scientist *snark *zombie * *REQUIREMENTS - *monster_plugin */

looks like your comment tags were messed up
Ced is offline
Peli
Veteran Member
Join Date: Mar 2004
Location: San Diego, CA
Old 01-18-2005 , 20:29  
Reply With Quote #3

That's what happens when you use /* */ comments... Fix that and see what happens.
Peli is offline
Send a message via MSN to Peli
Dizzy
Veteran Member
Join Date: Jun 2004
Location: Massachusetts
Old 01-19-2005 , 10:37  
Reply With Quote #4

K i will try

I am at school right now so I will fix it at home
__________________
My Plugins

Purchase Mod - Stable
Type Sounds - Stable
Monster Spawner - Stable
Nade Giver - Maintenance
Dizzy is offline
Send a message via AIM to Dizzy
Dizzy
Veteran Member
Join Date: Jun 2004
Location: Massachusetts
Old 01-19-2005 , 10:40  
Reply With Quote #5

but why the other errors

someone test compile it. See the errors (at school)

__________________
My Plugins

Purchase Mod - Stable
Type Sounds - Stable
Monster Spawner - Stable
Nade Giver - Maintenance
Dizzy is offline
Send a message via AIM to Dizzy
Dizzy
Veteran Member
Join Date: Jun 2004
Location: Massachusetts
Old 01-20-2005 , 13:47  
Reply With Quote #6

*BUMP*

(Please Help)
__________________
My Plugins

Purchase Mod - Stable
Type Sounds - Stable
Monster Spawner - Stable
Nade Giver - Maintenance
Dizzy is offline
Send a message via AIM to Dizzy
Smokey485
Senior Member
Join Date: Dec 2004
Location: Newt 'Ellin
Old 01-20-2005 , 14:59  
Reply With Quote #7

Id help u if u actually listened to peli and saw u never put some things down.
Smokey485 is offline
Send a message via AIM to Smokey485 Send a message via MSN to Smokey485
Da Bishop
Senior Member
Join Date: Aug 2004
Location: Chester County PA
Old 01-20-2005 , 15:07  
Reply With Quote #8

Quote:
Originally Posted by Smokey485
Id help u if u actually listened to peli and saw u never put some things down.
well, the no commects caused errors... but heres the main problem

Code:
    register_clcmd("/agrunt","agrunt","ADMIN_LEVEL_A")
As you know this registers this commnad and executes the function called agrunt.

Code:
plugin agrunt(id)

okay, not sure where you got the whole plugin thing from but.... it needs to be a public function and indentical to the called function. The command calls for the function "agrunt" so it appears as so

Code:
public agrunt(id) { //code }
__________________
Anything that is done can only be done better by urself - since life is a opinion make it the way urs feel its best

~live by it
Da Bishop is offline
Send a message via MSN to Da Bishop
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 01-20-2005 , 18:49  
Reply With Quote #9

Wow, I didn't notice it until you put that line of code up there, Da Bishop, and I'm surprised you didn't comment on it: he uses the third parameter in register_clcmd as a string, "ADMIN_LEVEL_A", however it takes a constant integer, so remove the quotes, ADMIN_LEVEL_A
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
Da Bishop
Senior Member
Join Date: Aug 2004
Location: Chester County PA
Old 01-20-2005 , 19:14  
Reply With Quote #10

Quote:
Originally Posted by XxAvalanchexX
Wow, I didn't notice it until you put that line of code up there, Da Bishop, and I'm surprised you didn't comment on it: he uses the third parameter in register_clcmd as a string, "ADMIN_LEVEL_A", however it takes a constant integer, so remove the quotes, ADMIN_LEVEL_A
O well, glad you caught it. I wan't paying much attention. Lol im still on pain killers. Damn surgery.
__________________
Anything that is done can only be done better by urself - since life is a opinion make it the way urs feel its best

~live by it
Da Bishop is offline
Send a message via MSN to Da Bishop
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 19:25.


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