Raised This Month: $ Target: $400
 0% 

Is this a bug? - I need some help with this plugin -


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hip_hop_x
Senior Member
Join Date: Apr 2006
Old 01-12-2007 , 16:16   Is this a bug? - I need some help with this plugin -
Reply With Quote #1

plugin code:
Code:
#include <amxmodx> #include <amxmisc> #include <fun> new p_cvar1 public plugin_init() {     register_plugin("HXhl", "1a", "Hip_hop_x")         register_clcmd( "HXhl","hlmenu")         p_cvar1 = register_cvar("amx_HXhl", "1")         register_clcmd("say /chose", "HXchose", 0) } public HXchose(id) {     if(get_pcvar_num(p_cvar1) != 1) {         return PLUGIN_HANDLED     }     set_task(0.1, "hlmenu")         return PLUGIN_HANDLED } public hlmenu(id) {     new menu = menu_create("\yHalf-life Power Menu!:", "menu_handler")         menu_additem(menu, "\wPorc Gravity#1", "1", 0)     menu_additem(menu, "\wZerg Speed#2", "2", 0)     menu_additem(menu, "\wCino Health #3", "3", 0)     menu_additem(menu, "\wMegaX #4", "4", ADMIN_ADMIN)             menu_setprop(menu, MPROP_EXIT, MEXIT_ALL)         //Menu display     menu_display(id, menu, 0) } public menu_handler(id, menu, item) {     if (item == MENU_EXIT)     {         menu_destroy(menu)         //aici voi adauga sa nu mai apara         return PLUGIN_HANDLED     }         new data[6], iName[64]     new access, callback         menu_item_getinfo(menu, item, access, data,5, iName, 63, callback)             new key = str_to_num(data)         switch(key)     {         case 1:{             client_print(id, print_chat, "[ HXhl ] You Selected Porc Gravity")                         set_user_gravity(id, 0.7)             menu_destroy(menu)             return PLUGIN_HANDLED         }         case 2:{             client_print(id, print_chat, "[ HXhl ] You Selected Zerg Speed")             set_user_maxspeed(id, get_user_maxspeed(id) + 20)                         menu_destroy(menu)             return PLUGIN_HANDLED         }         case 3:{             client_print(id, print_chat, "\r[ HXhl ] You Selected Cino Health")             set_user_health(id, get_user_health(id) + 25)                         menu_destroy(menu)             return PLUGIN_HANDLED         }         case 4:{             if(!is_user_alive) {                 return PLUGIN_HANDLED             }             client_print(id, print_chat, "[ HXhl ] MegaX")             set_user_rendering(id,kRenderFxGlowShell,255,0,0,kRenderNormal,25)             set_user_maxspeed(id, get_user_maxspeed(id) + 50)             set_user_health(id, get_user_health(id) + 95)                         menu_destroy(menu)             return PLUGIN_HANDLED         }     }     menu_destroy(menu)     return PLUGIN_HANDLED }

When I'm in gameserer and I say /chose, server crashes (half-life gameserver). This plugins doesn't work with a half-life dedicated gameserver, but works with a counter-strike dedicated server. Anyone knows how to fix this?

Last edited by hip_hop_x; 01-13-2007 at 11:06.
hip_hop_x is offline
Send a message via MSN to hip_hop_x Send a message via Yahoo to hip_hop_x
hip_hop_x
Senior Member
Join Date: Apr 2006
Old 01-14-2007 , 11:57   Re: Is this a bug? - I need some help with this plugin -
Reply With Quote #2

Nobody knows?
hip_hop_x is offline
Send a message via MSN to hip_hop_x Send a message via Yahoo to hip_hop_x
slmclarengt
Veteran Member
Join Date: Jul 2004
Location: The Cookie Jar... or Pul
Old 01-14-2007 , 20:19   Re: Is this a bug? - I need some help with this plugin -
Reply With Quote #3

Quote:
Originally Posted by hip_hop_x View Post
Nobody knows?
1) Please don't bump your own topic after only 2 days. The average wait time should be 2 weeks.
2) If I remember correctly, I thought I heard a problem with HP not adding in Half-life, but I may be wrong and flaming of this misconception is useless.
3) Your code *seems* fine even though I can't read whatever language that is :-).
4) Check your server error logs located in "$moddir/addons/amxmodx/logs/errorlog_DATE.log" on whatever day you executed that. Post the results of errors relating to your plugin.

Slmclarengt
__________________
But we don’t beat the Reaper by living longer. We beat the Reaper by living well. -Dr. Randy Pausch, R.I.P.

Come play WC3:FT on BnD Clan Server! You know you want to: Connect to WC3:FT BnD - go ahead click me!
slmclarengt is offline
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 01-14-2007 , 22:40   Re: Is this a bug? - I need some help with this plugin -
Reply With Quote #4

Code:
    set_task(0.1, "hlmenu")
Code:
public hlmenu(id)
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
hip_hop_x
Senior Member
Join Date: Apr 2006
Old 01-15-2007 , 14:30   Re: Is this a bug? - I need some help with this plugin -
Reply With Quote #5

in the error log I found Run time error 10 (plugin "HXhlmenu.amxx") (native "precache_model"), but when I say /chat hlds.exe crashes, and the message written there is: MSG_ONE or MESSAGE_ENTITY no reliable

Anyone has a fix?
hip_hop_x is offline
Send a message via MSN to hip_hop_x Send a message via Yahoo to hip_hop_x
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 01-16-2007 , 16:11   Re: Is this a bug? - I need some help with this plugin -
Reply With Quote #6

PHP Code:
set_task(0.1"hlmenu"
->

PHP Code:
set_task(0.1"hlmenu"id
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
hip_hop_x
Senior Member
Join Date: Apr 2006
Old 01-17-2007 , 12:15   Re: Is this a bug? - I need some help with this plugin -
Reply With Quote #7

Thanks a lot SweatyBanana, you fixed my plugin. Thanks guys for help, topic can be closed.
hip_hop_x is offline
Send a message via MSN to hip_hop_x Send a message via Yahoo to hip_hop_x
aDr.
Member
Join Date: Oct 2006
Old 01-17-2007 , 12:51   Re: Is this a bug? - I need some help with this plugin -
Reply With Quote #8

Si ce face pluginul asta ? poate il bag si eu pe serverul meu (this reply is only for hip_hop_x)
aDr. 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 20:33.


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