Raised This Month: $ Target: $400
 0% 

Server Crashing ERROR MSG_ONE


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Orangutanz
Veteran Member
Join Date: Apr 2006
Old 09-21-2007 , 11:48   Re: Server Crashing ERROR MSG_ONE
Reply With Quote #6

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.
__________________
|<-- Retired from everything Small/Pawn related -->|
You know when you've been Rango'd
Orangutanz is offline
 



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 16:13.


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