Raised This Month: $ Target: $400
 0% 

MSG_ONE error ..


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
skillmaker
Member
Join Date: Mar 2009
Old 01-15-2011 , 08:07   MSG_ONE error ..
Reply With Quote #1

FATAL ERROR (shutting down): MSG_ONE or MSG_ONE_UNRELIABLE with no target entity
My server is crashing because this error :/
Hope someone can fix this plugin:


____ FIXED ____ TY!

Last edited by skillmaker; 01-30-2011 at 07:34.
skillmaker is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 01-15-2011 , 08:14   Re: MSG_ONE error ..
Reply With Quote #2

Make sure id is valid so > 0 when you use print_message().
__________________
Arkshine is offline
skillmaker
Member
Join Date: Mar 2009
Old 01-15-2011 , 20:11   Re: MSG_ONE error ..
Reply With Quote #3

Thank you
But still 1 problem, i dont know how to do that :/ Can someone smarter do that?
skillmaker is offline
skillmaker
Member
Join Date: Mar 2009
Old 01-23-2011 , 06:23   Re: MSG_ONE error ..
Reply With Quote #4

Someone? I dont know how to fix it
skillmaker is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 01-23-2011 , 06:36   Re: MSG_ONE error ..
Reply With Quote #5

You're not providing a correct last parameter in equali() BTW.
__________________
hleV is offline
fireattack
Senior Member
Join Date: Jul 2008
Old 01-23-2011 , 09:10   Re: MSG_ONE error ..
Reply With Quote #6

PHP Code:
if( pevid,pev_flags ) & FL_CLIENT && is_user_connectedid ) ) 
fireattack is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 01-23-2011 , 22:26   Re: MSG_ONE error ..
Reply With Quote #7

Problem is here:
Code:
public client_authorized(id) {     set_task(35.0, "PrintText", id) } public PrintText(id) {     new message[256]     format(message, 255, "^x04[VIP]^x01 Write:^x03 /wantvip^x01 to chat.")     print_message(id, message)     return PLUGIN_CONTINUE }
client_authorized() does not mean player is in the server.
Also, player can disconnect before 35 seconds.
You should move the task to client_putinserver() and remove the task on client_disconnect().
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] 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 01:56.


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