Raised This Month: $ Target: $400
 0% 

AMX Super -> Invalid PlayerID 0


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
taheri6
Member
Join Date: Mar 2006
Old 01-09-2008 , 01:40   AMX Super -> Invalid PlayerID 0
Reply With Quote #1

Hello,

I have AMX Super v3.7 installed and am getting hundreds of these errors per day.

L 01/08/2008 - 22:42:27: Invalid player id 0
L 01/08/2008 - 22:42:27: [AMXX] Displaying debug trace (plugin "amx_super.amxx")
L 01/08/2008 - 22:42:27: [AMXX] Run time error 10: native error (native "get_user_attacker")
L 01/08/2008 - 22:42:27: [AMXX] [0] phpXt4T66.sma:n_damage (line 729)


name version author status
[ 1] MySQL 1.76b AMX Mod X Dev Team running
[ 2] Fun 1.76 AMX Mod X Dev Team running
[ 3] Engine 1.76 AMX Mod X Dev Team running
[ 4] FakeMeta 1.76b AMX Mod X Dev Team running
[ 5] GeoIP 1.76 AMX Mod X Dev Team running
[ 6] nVault 1.76 AMX Mod X Dev Team running
[ 7] CStrike 1.76 AMX Mod X Dev Team running
[ 8] CSX 1.76a AMX Mod X Dev Team running
[ 9] SQLite 1.76b AMX Mod X Dev Team running
[10] Sockets 1.76 HLSW Dev Team running
[11] RegEx 1.76 AMX Mod X Dev Team running
11 modules, 11 correct


22:45:10 Currently loaded plugins:
name version author file status
[ 1] Admin Base (SQL) 1.76b AMXX Dev Team admin_sql.amxx running
[ 2] AMXBans 5.0 YoMama/Lux & lan amxbans.amxx running
[ 3] Admin Commands 1.76b AMXX Dev Team admincmd.amxx running
[ 4] Admin Help 1.76b AMXX Dev Team adminhelp.amxx running
[ 5] Slots Reservation 1.76b AMXX Dev Team adminslots.amxx running
[ 6] Multi-Lingual System 1.76b AMXX Dev Team multilingual.am running
[ 7] Menus Front-End 1.76b AMXX Dev Team menufront.amxx running
[ 8] Commands Menu 1.76b AMXX Dev Team cmdmenu.amxx running
[ 9] Players Menu 1.76b AMXX Dev Team plmenu.amxx running
[ 10] Teleport Menu 1.76b AMXX Dev Team telemenu.amxx running
[ 11] Maps Menu 1.76b AMXX Dev Team mapsmenu.amxx running
[ 12] Std Admin Color Chat 1.1.1 Van der Cal std_admin_color running
[ 13] Admin Chat 1.76b AMXX Dev Team adminchat.amxx running
[ 14] Anti Flood 1.76b AMXX Dev Team antiflood.amxx running
[ 15] Scrolling Message 1.76b AMXX Dev Team scrollmsg.amxx running
[ 16] Info. Messages 1.76b AMXX Dev Team imessage.amxx running
[ 17] Admin Votes 1.76b AMXX Dev Team adminvote.amxx running
[ 18] NextMap 1.76b AMXX Dev Team nextmap.amxx running
[ 19] TimeLeft 1.76b AMXX Dev Team timeleft.amxx running
[ 20] Pause Plugins 1.76b AMXX Dev Team pausecfg.amxx running
[ 21] Stats Configuration 1.76b AMXX Dev Team statscfg.amxx running
[ 22] StatsX 1.76b AMXX Dev Team statsx.amxx running
[ 23] CS Misc. Stats 1.76b AMXX Dev Team miscstats.amxx running
[ 24] CS Stats Logging 1.76b AMXX Dev Team stats_logging.a running
[ 25] Ultimate Warcraft3 1.6.19 www.Uwc3Mod.com uwc3.amxx running
[ 26] Autoresponder/Advertis 0.5 MaximusBrood ad_manager.amxx running
[ 27] Clan Tag Checker 2.0 v3x clan_tag_checke running
[ 28] Admin Spectator ESP 1.3 KoST admin_spec_esp. running
[ 29] AMX Super 3.7 Bmann_420 & Bo0m amx_super.amxx running
[ 30] PsychoListen 0.8.6b PsychoGuard psycholisten.am running
[ 31] Server menu 1.0 Janzert servermenu.amxx running
[ 32] Voicecomm ban 1.0.4 EKS voicecomm_ban.a running
[ 33] POD-Bot Menu 1.3 g4s|figurE.09 amxx_podbotmenu running
[ 34] POD-Bot MM Quota Contr 1.0 RC KWo amxx_podbot_ctr running
[ 35] Infected By Virus 1.0 CyberGuerrier infected_by_vir running
[ 36] a3 record 2.3 A3 Alcedema a3_record.amxx running
[ 37] DeagsMapManager 3.0 Deags/AMXX Commu deagsmapmanager running
37 plugins, 37 running
__________________
http://www.yaur.com -=[Yaur]=- Clan Website
taheri6 is offline
taheri6
Member
Join Date: Mar 2006
Old 01-09-2008 , 20:58   Re: AMX Super -> Invalid PlayerID 0
Reply With Quote #2

maybe you need something like this?

PHP Code:

#define MAX_PLAYERS 33

public Util_Is_Valid_Playerid )
{
    if( 
== id || id MAX_PLAYERS )
    {
        return 
false;
    }

    if( 
is_user_connectedid ) && ( pevidpev_flags ) & FL_CLIENT ) )
    {
        return 
true;
    }

    return 
false;

before the call ?
__________________
http://www.yaur.com -=[Yaur]=- Clan Website
taheri6 is offline
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 01-10-2008 , 14:55   Re: AMX Super -> Invalid PlayerID 0
Reply With Quote #3

Is that not a conflict with Ultimate Warcraft?
__________________
bmann_420 is offline
taheri6
Member
Join Date: Mar 2006
Old 01-11-2008 , 01:33   Re: AMX Super -> Invalid PlayerID 0
Reply With Quote #4

it wouldnt surprise me if it was isolated to uwc3 mod, but either way wouldnt an ID check id < 1 || id > MAX_PLAYERS be prudent anyways?

I dont want to ditch either plugin but having tons of these messages is kind of distressing and hard to see real errors if they occur

Edit:

Something like this:

PHP Code:
public on_damage(id)
{
    if(!
get_pcvar_num(bulletdamage))
        return 
PLUGIN_HANDLED
        
    
if( ( id || id 32) || !is_user_connectedid ) )
        return 
PLUGIN_HANDLED

    
new attacker get_user_attacker(id
By the way, what is phpXt4T66.sma ??
__________________
http://www.yaur.com -=[Yaur]=- Clan Website

Last edited by taheri6; 01-11-2008 at 01:38.
taheri6 is offline
taheri6
Member
Join Date: Mar 2006
Old 01-11-2008 , 02:11   Re: AMX Super -> Invalid PlayerID 0
Reply With Quote #5

Ok, I dont mean to post like crazy here, but I edited teh SMA and put that check in there and I no longer get the error.
__________________
http://www.yaur.com -=[Yaur]=- Clan Website
taheri6 is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 01-11-2008 , 11:54   Re: AMX Super -> Invalid PlayerID 0
Reply With Quote #6

phpXt4T66.sma is the name of the sma that the webcompiler used to compile the plugin. IMO, uwc3 sucks and is outdated.
__________________
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
taheri6
Member
Join Date: Mar 2006
Old 01-11-2008 , 13:32   Re: AMX Super -> Invalid PlayerID 0
Reply With Quote #7

Thanks for your opinion, but I didnt ask.

Im also not sure this is a uwc3 problem as it could be related to bots as well since pod bot is there with some custom plugins relating to qouta management of bots too.

But either way this topic can be closed since this solved.
__________________
http://www.yaur.com -=[Yaur]=- Clan Website
taheri6 is offline
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 01-11-2008 , 15:13   Re: AMX Super -> Invalid PlayerID 0
Reply With Quote #8

I see.

But Yami = Warcraft Mods Moderator (on the supported mods that is)

The reason I asked, is cause I use podbot plugins, or used to and have ran the super for along time and never came across any issues like that. So I figured that it would be a conflict of some sort, and I know that the Super runs into warcraft mod isses.
__________________
bmann_420 is offline
Lee
AlliedModders Donor
Join Date: Feb 2006
Old 01-12-2008 , 20:29   Re: AMX Super -> Invalid PlayerID 0
Reply With Quote #9

Quote:
Originally Posted by taheri6 View Post
maybe you need something like this?
I didn't offer you this advice in your own thread because it's not a clear-cut situation, but since you're now sharing your method with others: that function/stock would be better as a #define - if indeed the user agreed with you that typing out the handful of checks is too much work for them.
Lee is offline
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 01-15-2008 , 16:05   Re: AMX Super -> Invalid PlayerID 0
Reply With Quote #10

lol, we'll just keep it for reference for now.
__________________
bmann_420 is offline
Reply


Thread Tools
Display Modes

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 19:00.


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