Raised This Month: $ Target: $400
 0% 

Plugin errors (server crash)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
gin
Junior Member
Join Date: Feb 2009
Old 11-21-2009 , 05:47  
Reply With Quote #1

deleted

Last edited by gin; 11-24-2009 at 14:33.
gin is offline
Firippu
Senior Member
Join Date: Jan 2007
Old 11-21-2009 , 07:21   Re: Help
Reply With Quote #2

It looks like the player disconnects or dies before the tasks do their job. I would recommend checking if the player is connected and alive before these functions take place. or when a player disconnects, remove their task.
__________________
Firippu is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 11-21-2009 , 12:00   Re: Help
Reply With Quote #3

As per the Global Forum Rules, you need to have a descriptive topic title. If you wish for this topic to stay open, please correct the topic title before you post again.
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Old 11-21-2009, 15:48
gin
This message has been deleted by gin.
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 11-21-2009 , 15:51   Re: Plugin errors (server crash)
Reply With Quote #5

Quote:
Originally Posted by gin View Post
can somebody help me ?
Quote:
Originally Posted by Firippu View Post
It looks like the player disconnects or dies before the tasks do their job. I would recommend checking if the player is connected and alive before these functions take place. or when a player disconnects, remove their task.
__________________
Bugsy is offline
Backstabnoob
BANNED
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 11-21-2009 , 16:56   Re: Plugin errors (server crash)
Reply With Quote #6

I'm not sure, but I think changing
PHP Code:
stock remove_invizibile(index)
{
    
set_user_rendering(index,kRenderFxNone,0,0,0,kRenderNormal,0)

to
PHP Code:
stock remove_invizibile(index)
{
    if(
is_user_alive(index)) {
    
set_user_rendering(index,kRenderFxNone,0,0,0,kRenderNormal,0) }

would do the trick.

Last edited by Backstabnoob; 11-21-2009 at 17:34.
Backstabnoob is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 11-21-2009 , 17:29   Re: Plugin errors (server crash)
Reply With Quote #7

if(is_user_alive( index ) ) {

fixed.
__________________
Arkshine is offline
Backstabnoob
BANNED
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 11-21-2009 , 17:34   Re: Plugin errors (server crash)
Reply With Quote #8

Uhh, forgot. Updated
Backstabnoob is offline
Old 11-22-2009, 06:43
gin
This message has been deleted by gin.
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 11-22-2009 , 09:50   Re: Plugin errors (server crash)
Reply With Quote #10

Show us the new errors.
__________________
Bugsy is offline
Reply



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


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