AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [HAM] Server Crash OBJ Cap (https://forums.alliedmods.net/showthread.php?t=164235)

Doc-Holiday 08-08-2011 23:49

[HAM] Server Crash OBJ Cap
 
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.

Arkshine 08-09-2011 03:14

Re: [HAM] Server Crash OBJ Cap
 
Could you stop to edit each time your post ? Now, your post doesn't make sense at all. You are not alone on this forum.

Doc-Holiday 08-09-2011 06:01

Re: [HAM] Server Crash OBJ Cap
 
Quote:

Originally Posted by Arkshine (Post 1528742)
Could you stop to edit each time your post ? Now, your post doesn't make sense at all. You are not alone on this forum.

I only edit once i solve...

If i solve it i edit it.. it still has the issue AddProgress from some thread called HUD Progress bar didnt work for what i wanted kept crashing

i cahnged it to that stock i found from some one else and it works fine.

fysiks 08-09-2011 08:54

Re: [HAM] Server Crash OBJ Cap
 
Seems like you need to look harder before you post if you're going to solve all your "problems" on your own.

Arkshine is correct, your post makes absolutely no sense.

Doc-Holiday 08-09-2011 17:08

Re: [HAM] Server Crash OBJ Cap
 
Quote:

Originally Posted by fysiks (Post 1528896)
Seems like you need to look harder before you post if you're going to solve all your "problems" on your own.

Arkshine is correct, your post makes absolutely no sense.

look at the post time and edit... i couldnt figure out why it was crashing so i searched and searched untill i found the above stock... same thing as before just with one extra parameter and it doesnt crash...


All times are GMT -4. The time now is 03:26.

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