Raised This Month: $ Target: $400
 0% 

My plugin is not working


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
kasc
Junior Member
Join Date: Mar 2005
Location: The Grand UK!
Old 03-31-2005 , 12:09   My plugin is not working
Reply With Quote #1

Please tell me why this has a "Bad Load":
Code:
#include <amxmodx> #include <amxmisc> new PLUGIN[]="You Are Stupid" new AUTHOR[]="Kasc" new VERSION[]="1.00" public plugin_init() {      register_plugin(PLUGIN, VERSION, AUTHOR)      register_clcmd("amx_urstupid","myfunction",AMX_HELP,"Declares that you think a specific person is stupid!")         } public myfunction(id) {      new arg[32];      read_argv(1,arg,31);      new player = cmd_target(id,arg);      if(!player) {           return PLUGIN_HANDLED;      }      new targetname[32], myname[32];      get_user_name(player,targetname,31);      get_user_name(id,myname,31);      client_print(0,print_chat,"* %s thinks that %s is stupid!",myname,targetname);      return PLUGIN_HANDLED; }

thanks
__________________
I like it when you get bad karma, especially because of its randomness!
kasc is offline
Send a message via AIM to kasc Send a message via MSN to kasc
NiGHTFiRE
Senior Member
Join Date: Dec 2004
Location: Sweden
Old 04-01-2005 , 21:08  
Reply With Quote #2

haven't you already made a topic about this
NiGHTFiRE is offline
Send a message via AIM to NiGHTFiRE Send a message via MSN to NiGHTFiRE
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 04-01-2005 , 22:52  
Reply With Quote #3

Code:
register_clcmd("amx_urstupid","myfunction",AMX_HELP,"Declares that you think a specific person is stupid!")
AMX_HELP isn't an access level, use something like the following:

Code:
ADMIN_SLAY
ADMIN_KICK
ADMIN_BAN
ADMIN_RCON
etc..
__________________
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
kasc
Junior Member
Join Date: Mar 2005
Location: The Grand UK!
Old 04-03-2005 , 08:38  
Reply With Quote #4

I AM SORRY IF MY OTHER POST WAS NOT ANSWERED
I AM SORRY THAT I FORGOT TO PUT THE UPDATED VERSION POSTED!
THE F***ING AMX_HELP HAS BEEN CHANGED TO ADMIN_KICK
AND IT STILL DOES NOT WORK!!!!!

LOL i love anger


o yes and i forgot to ask, how do i make it so that any1 can use this command (by any1 i mean non-admins aswell)
__________________
I like it when you get bad karma, especially because of its randomness!
kasc is offline
Send a message via AIM to kasc Send a message via MSN to kasc
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 04-03-2005 , 09:32  
Reply With Quote #5

Code:
register_clcmd("amx_urstupid","myfunction",AMX_HELP,"Declares that you think a specific person is stupid!")

Code:
register_clcmd("amx_urstupid","myfunction",0,"Declares that you think a specific person is stupid!")
__________________
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
Reply


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 09:49.


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