Raised This Month: $ Target: $400
 0% 

Instagib plugin showing lots of errors


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 10-18-2005 , 19:14  
Reply With Quote #1

Maybe because you have a cvar and a command named the same thing?
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
DarlD
Senior Member
Join Date: Aug 2004
Old 10-18-2005 , 19:25  
Reply With Quote #2

ok thanks bout that one, heres something else, when i load the plugin it says there is an error i can compile though.

here is the error
L 10/18/2005 - 18:24:46: [AMXX] Plugin file open error (plugin "meta-addons.amxx"
__________________
DarlD is offline
Send a message via MSN to DarlD
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 10-18-2005 , 19:44  
Reply With Quote #3

It probably means that the file doesn't exist. You probably mis-spelled it in plugins.ini or in the plugins folder, or forgot to move it there after compiling.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
DarlD
Senior Member
Join Date: Aug 2004
Old 10-18-2005 , 23:57  
Reply With Quote #4

weirdly the command still doesnt work!!!

here is what my plugin looks like now

Code:
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <amxmisc> #include <cstrike> #include <fun> #define PLUGIN "Meta-Addons" #define VERSION "0.1" #define AUTHOR "Meta" // Setting all the cvars and others here. public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)     register_event("ResetHUD","event_resethud","b")     register_concmd("ma_instagib","instagib",ADMIN_KICK,"Instagib command"); } /* Starting the plugins functions */ public event_resethud(id) {     if(is_user_connected(id)) {         set_task(0.1,"ma_instagib",id)     } } // ma_details is set here public ma_details(id) {     return PLUGIN_CONTINUE } // ma_instagib is set here public ma_instagib(id) {     if ( get_cvar_num("ma_instagib") == 1 )     show_hudmessage(id,"Meta-Addons: Instagib Mode has been activated!")     if(is_user_alive(id))     set_user_health(id,1)     cs_set_user_money(id,1,0)     strip_user_weapons(id)     give_item(id,"weapon_scout")     give_item(id,"weapon_knife")     cs_set_weapon_ammo(id,60);         return PLUGIN_CONTINUE }
__________________
DarlD is offline
Send a message via MSN to DarlD
DarlD
Senior Member
Join Date: Aug 2004
Old 10-19-2005 , 00:24  
Reply With Quote #5

Ok plugin compiles, i now have the ma_instagib command to activate the instagib, problem is cs_set_weapon_ammo. it keeps telling me i have a bad native error or something. here have a look:
Code:
public instagib(id) {     if ( get_cvar_num("instagib") == 1 )     show_hudmessage(id,"Meta-Addons: Instagib Mode has been activated!")     if(is_user_alive(id))     set_user_health(id,1)     cs_set_user_money(id,1,0)     strip_user_weapons(id)     give_item(id,"weapon_scout")     give_item(id,"weapon_knife")     cs_set_weapon_ammo(id,3);         return PLUGIN_CONTINUE }

here is the full plugin:
Code:
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <amxmisc> #include <cstrike> #include <fun> #define PLUGIN "Meta-Addons" #define VERSION "0.1" #define AUTHOR "Meta" // Setting all the cvars and others here. public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)     register_event("ResetHUD","event_resethud","b")     register_concmd("ma_instagib","instagib",ADMIN_KICK,"Instagib command")     register_cvar("instagib","0"); } /* Starting the plugins functions */ public event_resethud(id) {     if(is_user_connected(id)) {         show_hudmessage(id,"Meta-Addons: Enabled! Created by Meta");     } } // ma_details is set here public ma_details(id) {     return PLUGIN_CONTINUE } // ma_instagib is set here public instagib(id) {     if ( get_cvar_num("instagib") == 1 )     show_hudmessage(id,"Meta-Addons: Instagib Mode has been activated!")     if(is_user_alive(id))     set_user_health(id,1)     cs_set_user_money(id,1,0)     strip_user_weapons(id)     give_item(id,"weapon_scout")     give_item(id,"weapon_knife")     cs_set_weapon_ammo(id,3);         return PLUGIN_CONTINUE }
__________________
DarlD is offline
Send a message via MSN to DarlD
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 23:48.


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