Raised This Month: $ Target: $400
 0% 

[solved]How to fix warnings here?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Xum
Member
Join Date: Jun 2006
Old 07-10-2006 , 16:13   Re: [un-solved]How to fix warnings here?
Reply With Quote #1

I want a fix for plugin, because server gives me an runtime error 10, not to change the structure of it very much.
ex what can do: amx_hudmsg test my plugin will apear the message on screen all the round.
Plugin works but i get that error in the server and makes lag.
__________________
[IMG]http://img236.**************/img236/9858/xulogo2pq.gif[/IMG]Xu Share Website CjtServer
My Superhero 22/7 gameserver
ip: 64.94.171.241:27055 and the pasword is: qwerty
Xum is offline
Rolnaaba
Veteran Member
Join Date: May 2006
Old 07-10-2006 , 16:20   Re: [un-solved]How to fix warnings here?
Reply With Quote #2

did u try what Shino said?
__________________
DO NOT PM me about avp mod.
Rolnaaba is offline
Xum
Member
Join Date: Jun 2006
Old 07-10-2006 , 17:02   Re: [un-solved]How to fix warnings here?
Reply With Quote #3

He modified the plugin and doesn't do what i want. With his code if i will write amx_hudcenter will apear the whatever you want from.
register_cvar("sv_hudmsgtext","whatever you want") I want to apear like this if Il write amx_hudcente my text in console on the hud will apear my text. I don't know how to explin very good.

I added the debug command in plugins.ini to see from where i get that runtime error. And the runtime error is from:
Code:
public DeathMsg(id){     set_task(0.2, argMessage)         }
I don't know what's wrong here, plugin works but in server console i get this runtime error .
__________________
[IMG]http://img236.**************/img236/9858/xulogo2pq.gif[/IMG]Xu Share Website CjtServer
My Superhero 22/7 gameserver
ip: 64.94.171.241:27055 and the pasword is: qwerty

Last edited by Xum; 07-10-2006 at 18:01.
Xum is offline
jtp10181
Veteran Member
Join Date: May 2004
Location: Madison, WI
Old 07-10-2006 , 21:31   Re: [un-solved]How to fix warnings here?
Reply With Quote #4

you have yet to actually post the exact runtime error message along with the debug output.

Also FYI you cant set a task on a variable... wtf are you doing?
__________________

Last edited by jtp10181; 07-10-2006 at 21:33.
jtp10181 is offline
Send a message via ICQ to jtp10181 Send a message via AIM to jtp10181 Send a message via MSN to jtp10181 Send a message via Yahoo to jtp10181
Xum
Member
Join Date: Jun 2006
Old 07-11-2006 , 07:14   Re: [un-solved]How to fix warnings here?
Reply With Quote #5

Then that's why my plugin doesn't work.
__________________
[IMG]http://img236.**************/img236/9858/xulogo2pq.gif[/IMG]Xu Share Website CjtServer
My Superhero 22/7 gameserver
ip: 64.94.171.241:27055 and the pasword is: qwerty
Xum is offline
Gizmo
Senior Member
Join Date: May 2006
Location: Sweden
Old 07-11-2006 , 10:09   Re: [un-solved]How to fix warnings here?
Reply With Quote #6

I guess you are looking to do something like this...
Your holdtime on the hudmsg is not very good, i tested it and if you write more messages the old one is still there and that looks really ugly.
Im not sure what the recl function message is good for but atleast it should work now...

Code:
// Credits to: Gizmo and Rolnaaba #include <amxmodx> #include <amxmisc> public plugin_init() {     register_plugin("HUDmsg", "1.0", "Hip_hop_x")     register_event("DeathMsg", "DeathMsg", "a")     register_event("ResetHUD", "startround", "a")     register_cvar("sv_hudmsg", "1")     register_concmd("amx_hudcenter", "cmd_message", ADMIN_CHAT, "message in the center")     register_concmd("amx_hudmsg", "cmd_extrem", ADMIN_ALL, "<message up>") } public startround(id) {     set_task(0.2, "recl") } public cmd_message(id) {     if(!access(id, ADMIN_CHAT))     {         console_print(id, "[AMXX] You have no access to this command!");         return PLUGIN_HANDLED     }     new argMessage[256]     read_argv(1, argMessage, 255)     set_hudmessage(130, 90, 70, -1.0, 0.45, 0, 1.0, 999991.0, 0.1, 0.2, -1)     show_hudmessage(0, argMessage)     return PLUGIN_HANDLED } public cmd_extrem(id) {     if(!access(id, ADMIN_CHAT))     {         console_print(id, "[AMXX] You have no access to this command!");         return PLUGIN_HANDLED     }     new argMessage[256]     read_argv(1, argMessage, 255)     set_hudmessage(150, 89, 37, -1.0, 0.10, 0, 1.0, 999991.0, 0.1, 0.2, -1)     show_hudmessage(0, argMessage)     return PLUGIN_HANDLED } public recl(id) {     console_print(id, "[Xu Message] For more plugins vizit xu-share.tk") } public client_connect(id) {     new name[32]     get_user_name(id, name, 31)     if(get_cvar_num("sv_hudmsg") == 1)     {         set_hudmessage(190, 30, 0, -1.0, 0.15, 0, 1.0, 7.0, 0.1, 0.2, -1)         show_hudmessage(0, "%s connecting", name)     } } public client_disconnect(id) {     new name[32]     get_user_name(id, name, 31)     if(get_cvar_num("sv_hudmsg") == 1)     {         set_hudmessage(190, 30, 0, -1.0, 0.24, 0, 1.0, 5.0, 0.1, 0.2, -1)         show_hudmessage(0, "%s disconnected", name)     } } public DeathMsg(id) {     set_task(0.2, "recl") }
__________________
Gizmo is offline
Xum
Member
Join Date: Jun 2006
Old 07-11-2006 , 12:55   Re: [un-solved]How to fix warnings here?
Reply With Quote #7

Not this i want, but thx.... I fixed the plugin.
__________________
[IMG]http://img236.**************/img236/9858/xulogo2pq.gif[/IMG]Xu Share Website CjtServer
My Superhero 22/7 gameserver
ip: 64.94.171.241:27055 and the pasword is: qwerty
Xum 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 07:57.


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