Raised This Month: $ Target: $400
 0% 

[HAM] Server Crash OBJ Cap


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 08-08-2011 , 23:49   [HAM] Server Crash OBJ Cap
Reply With Quote #1

Switched from When you would do _AddProgress(id, 0); it would crash.
PHP Code:
public _AddProgress( const id, const duration )
{
    
message_beginMSG_ONEgmsgBarTime_id )
    
write_shortduration )
    
message_end()

switch to the below code and Create_BarTime(id, 0, 0) works just fine no crashes

PHP Code:
stock Create_BarTime(iddurationflag)
{

    if( 
is_user_connected(id) && !is_user_bot(id))
    {

        
message_beginMSG_ONEgmsgBarTime, {0,0,0}, id )
        
write_byteduration // duration 
        
write_byteflag )
        
message_end() 
    
    }

and works fine.

Last edited by Doc-Holiday; 08-09-2011 at 17:11.
Doc-Holiday 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 03:26.


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