View Single Post
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