Raised This Month: $ Target: $400
 0% 

Deathrun plugin error, lifes


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
sigerman
Senior Member
Join Date: Aug 2013
Location: Argentina, Bs.As.
Old 05-13-2014 , 05:58   Deathrun plugin error, lifes
Reply With Quote #1

The plugin lifes.amxx has this error:

L 05/10/2014 - 00:053: Start of error session.
L 05/10/2014 - 00:053: Info (map "deathrun_helvis") (file "addons/amxmodx/logs/error_20140510.log")
L 05/10/2014 - 00:053: [CSTRIKE] Invalid player 1
L 05/10/2014 - 00:053: [AMXX] Displaying debug trace (plugin "lifes.amxx")
L 05/10/2014 - 00:053: [AMXX] Run time error 10: native error (native "cs_get_user_team")
L 05/10/2014 - 00:053: [AMXX] [0] lifes.sma::func_AskForRevive_handler (line 178 )

I use 1 fake bot (due to deathrun mod) in my server but I don't think that's the problem.

I don't know how to fix it, I posted this in the plugin's thread some says ago, none answer.
Attached Files
File Type: sma Get Plugin or Get Source (lifes.sma - 474 views - 10.1 KB)
sigerman is offline
ANTICHRISTUS
kingdom of weird stuff
Join Date: Jun 2010
Location: My kingdom is not in thi
Old 05-13-2014 , 06:40   Re: Deathrun plugin error, lifes
Reply With Quote #2

the best way in to ask where the original plugin is located, nowhere else .
__________________
ANTICHRISTUS is offline
sigerman
Senior Member
Join Date: Aug 2013
Location: Argentina, Bs.As.
Old 05-13-2014 , 06:53   Re: Deathrun plugin error, lifes
Reply With Quote #3

Quote:
Originally Posted by ANTICHRISTUS View Post
the best way in to ask where the original plugin is located, nowhere else .
Because I did not do it (? "I posted this in the plugin's thread some says ago, none answer."
ANTICHRISTUS thanks for your help, I still do not understand you
I'm really expecting other kind of help. So don't feel sad
sigerman is offline
Flick3rR
Veteran Member
Join Date: Feb 2014
Location: Bulgaria, Stara Zagora
Old 05-13-2014 , 12:58   Re: Deathrun plugin error, lifes
Reply With Quote #4

Well, you can do 2 things:
1. Replace cs_get_user_team(id) with get_user_team
PHP Code:
if(is_user_alive(id) || cs_get_user_team(id) == CS_TEAM_T)
        return 
PLUGIN_HANDLED 
------->
PHP Code:
if(is_user_alive(id) || get_user_team(id) == 1)
        return 
PLUGIN_HANDLED 
2. Put a new check if the player is connected, that's why this error is caused...
PHP Code:
if(is_user_alive(id) || cs_get_user_team(id) == CS_TEAM_T)
        return 
PLUGIN_HANDLED 
------->
PHP Code:
if(is_user_alive(id) || is_user_connected(id) && cs_get_user_team(id) == CS_TEAM_T)
        return 
PLUGIN_HANDLED 
__________________
Flick3rR is offline
Send a message via Skype™ to Flick3rR
sigerman
Senior Member
Join Date: Aug 2013
Location: Argentina, Bs.As.
Old 05-14-2014 , 11:25   Re: Deathrun plugin error, lifes
Reply With Quote #5

Works Flick3rR, thanks
sigerman 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 12:38.


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