AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   MSG_ONE error .. (https://forums.alliedmods.net/showthread.php?t=147877)

skillmaker 01-15-2011 08:07

MSG_ONE error ..
 
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!

Arkshine 01-15-2011 08:14

Re: MSG_ONE error ..
 
Make sure id is valid so > 0 when you use print_message().

skillmaker 01-15-2011 20:11

Re: MSG_ONE error ..
 
Thank you :P
But still 1 problem, i dont know how to do that :/ Can someone smarter do that?

skillmaker 01-23-2011 06:23

Re: MSG_ONE error ..
 
Someone? I dont know how to fix it

hleV 01-23-2011 06:36

Re: MSG_ONE error ..
 
You're not providing a correct last parameter in equali() BTW.

fireattack 01-23-2011 09:10

Re: MSG_ONE error ..
 
PHP Code:

if( pevid,pev_flags ) & FL_CLIENT && is_user_connectedid ) ) 


Exolent[jNr] 01-23-2011 22:26

Re: MSG_ONE error ..
 
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().


All times are GMT -4. The time now is 01:56.

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