AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Server Crashing ERROR MSG_ONE (https://forums.alliedmods.net/showthread.php?t=61027)

purple nurple 09-18-2007 22:28

Server Crashing ERROR MSG_ONE
 
I have a 32 slot server and i made my own zombie mod for it but each time it gets full it crashes and i get this error.

MSG_ONE or MSG_UNRELIABLE with or target entity

does anyone know what this means? :shock:

AlMod 09-18-2007 23:04

Re: Server Crashing ERROR MSG_ONE
 
Maybe it going message owerflow?

mogel 09-19-2007 06:43

Re: Server Crashing ERROR MSG_ONE
 
Hi,

post ur code ... than we can look around

hand, mogel

purple nurple 09-20-2007 00:23

Re: Server Crashing ERROR MSG_ONE
 
Here you go.


Edit: Plugin Removed.

Orangutanz 09-21-2007 11:48

Re: Server Crashing ERROR MSG_ONE
 
This is your problem inside function: client_PreThink(id)
Code:
message_begin(MSG_ONE, SVC_TEMPENTITY, {0,0,0}, id) write_byte(TE_DLIGHT) write_coord(pos[0]) write_coord(pos[1]) write_coord(pos[2]) write_byte(80) write_byte(200) write_byte(200) write_byte(200) write_byte(5) write_byte(10) message_end()
This function is called very frequently not as frequent as ServerFrame, but still it's dangerous to create constant messages inside of this type of function.

The 2nd to last byte is how long this message will last in 10's.

Also when creating messages it's best to use an unreliable type, in this case MSG_ONE_UNRELIABLE to stop client overflow problems. Obviously there is cases where you need to make sure the message is reliable.


All times are GMT -4. The time now is 16:13.

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