Raised This Month: $ Target: $400
 0% 

Error Respawn


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Bello2
Senior Member
Join Date: Jun 2010
Location: Venezuela
Old 07-08-2010 , 10:08   Error Respawn
Reply With Quote #1

The error that this cause is that: When respawning a player there are times when it was as a spectator, Instead of reviving
The method that i'm using is this:

PHP Code:
ExecuteHamBHam_CS_RoundRespawnid ); 
To try to solve the problem i have done this small code:

PHP Code:
if (!can_spawn(id)) return;
{
     
//revive
}

stock can_spawn(id)
{
   if(
cs_get_user_team(id) == CS_TEAM_SPECTATOR || cs_get_user_team(id) == CS_TEAM_UNASSIGNED || is_user_alive(id))
      return 
false
    
   
return true

The problem is that it is not working and moreover i strip this error:

Code:
L 07/07/2010 - 23:53:17: Start of error session.
L 07/07/2010 - 23:53:17: Info (map "de_train") (file "addons/amxmodx/logs/error_20100707.log")
L 07/07/2010 - 23:53:17: [CSTRIKE] Invalid player 9
L 07/07/2010 - 23:53:17: [AMXX] Displaying debug trace (plugin "respawn.amxx")
L 07/07/2010 - 23:53:17: [AMXX] Run time error 10: native error (native "cs_get_user_team")
L 07/07/2010 - 23:53:17: [AMXX]    [0] deathmatch.sma::can_spawn (line 51)
L 07/07/2010 - 23:53:17: [AMXX]    [1] deathmatch.sma::revive (line 35)

Last edited by Bello2; 07-08-2010 at 12:25.
Bello2 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 07:15.


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