Raised This Month: $51 Target: $400
 12% 

[SOLVED]Respawn Bug


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
#8 SickneSS
BANNED
Join Date: Sep 2008
Location: Here
Old 11-13-2009 , 18:46   [SOLVED]Respawn Bug
Reply With Quote #1

Request...

Quote:
Originally Posted by joropito View Post
There's a bug

If someone dies and disconnects before respawn, you get in console an error because user is inexistent.

The task respawn should be removed when someone disconnects.
Bug...

Code:
Dropped Sickness from server
Reason:  Client sent 'drop'
L 11/13/2009 - 20:22:03: [CSTRIKE] Invalid player 1
L 11/13/2009 - 20:22:03: [AMXX] Displaying debug trace (plugin "WarmUP_Mod.amxx")
L 11/13/2009 - 20:22:03: [AMXX] Run time error 10: native error (native "cs_get_user_team")
L 11/13/2009 - 20:22:03: [AMXX] [0] WarmUP_Mod.sma::cmdRespawns (line 252)
Line...

PHP Code:
    if(!valids_teams(id)) { 
Complete Code Here

Try it in many ways to no avail :/...

Like...

PHP Code:
cmdRespawns(id) {

        if(!
is_user_connected(id))
        
remove_task(id+TASK_RESPAWN)

        
//Code

and...

PHP Code:
if(is_user_connected(id))
set_task(get_pcvar_float(respawndelay),"cmdRespawns",id+TASK_RESPAWN
and the problem continues,so i request help here.

Thanks!

Last edited by #8 SickneSS; 11-15-2009 at 18:10. Reason: Solved
#8 SickneSS is offline
Send a message via MSN to #8 SickneSS Send a message via Skype™ to #8 SickneSS
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 11-13-2009 , 18:49   Re: Respawn Bug
Reply With Quote #2

The task is not removed on player disconnect ?
__________________
Arkshine is offline
#8 SickneSS
BANNED
Join Date: Sep 2008
Location: Here
Old 11-13-2009 , 18:53   Re: Respawn Bug
Reply With Quote #3

Quote:
Originally Posted by Arkshine View Post
The task is not removed on player disconnect ?
maybe u want kill me,but I realized that after making this post ...

Solved and Sorry

I make this...

PHP Code:
public client_disconnect(id) {   
    
    
respawn[id] = false
    b_attack
[id] = false
    remove_task
(id+TASK_RESPAWN)


Last edited by #8 SickneSS; 11-13-2009 at 18:57.
#8 SickneSS is offline
Send a message via MSN to #8 SickneSS Send a message via Skype™ to #8 SickneSS
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 11-13-2009 , 19:37   Re: [SOLVED]Respawn Bug
Reply With Quote #4

Yes, it's right. ;)
__________________
Arkshine 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 00:54.


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