AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   massive error logs from plugins... need help (https://forums.alliedmods.net/showthread.php?t=135847)

Rossonero 08-20-2010 08:25

massive error logs from plugins... need help
 
plugin peepingTom2

Quote:

L 08/09/2010 - 00:48:16: [CSTRIKE] Invalid player 1
L 08/09/2010 - 00:48:16: [AMXX] Displaying debug trace (plugin "peepingtom2.amxx")
L 08/09/2010 - 00:48:16: [AMXX] Run time error 10: native error (native "cs_get_user_team")
L 08/09/2010 - 00:48:16: [AMXX] [0] peepingTom2.sma::addToFullPackPost (line 288)
Code:

new aiment = pev(ent,pev_aiment)
               
                static CsTeams:team
                if((spectated != aiment) && is_user_alive(aiment) && ((cs_get_user_team(spectated) != (team=cs_get_user_team(aiment))) || (UserOptions[host][OptionTeamView] == _:TeamViewEverybody)))
                {
                    static ID[Individual]

lines 284 to 290

massive error logs

I have tried adding the is_user_connected feature, but still error logs appear

//---------

plugin: admin blanks

Quote:

L 08/15/2010 - 12:45:32: [FUN] Invalid player 17
L 08/15/2010 - 12:45:32: [AMXX] Displaying debug trace (plugin "cheaters.amxx")
L 08/15/2010 - 12:45:32: [AMXX] Run time error 10: native error (native "set_user_hitzones")
L 08/15/2010 - 12:45:32: [AMXX] [0] texth3SpT9.sma::unBlankPlayerTask (line 433)
and another similar one from the same plugin
(native "set_user_gravity"), but debug was not enabled back then


Code:

public unBlankPlayerTask(param[])
    {
    new VictimName[32]
    get_user_name(param[0],VictimName,31)
    gBlankPlayers[param[0]] = 0
    set_user_hitzones(param[0], 0, 255)
    return PLUGIN_HANDLED
    }

for the blanks plugin, I'll try the is_user_connected(param[0]) and see if error logs persist


main problem is that my server crashes and doesn't come back online until I manually restart it
and I want to get rid of error logs because I have nothing else as a possible cause for the crashes

lucas_7_94 08-20-2010 08:44

Re: massive error logs from plugins... need help
 
#define is_valid_player(%1) (1 <= %1 <= 32) ?

Rossonero 09-08-2010 06:14

Re: massive error logs from plugins... need help
 
not working...:|

Arkshine 09-08-2010 06:34

Re: massive error logs from plugins... need help
 
For the first, add && is_user_connected( spectated ) && after && is_user_alive(aiment)

For the second, like you said, add is_user_connected(param[0]) before all.

Rossonero 09-08-2010 10:52

Re: massive error logs from plugins... need help
 
thanks for your reply Arkshine (merci beaucoup)

I'll be back with a reply in a few days to see if error logs persist for any of the plug-ins above

first plug-in works all the same, lets see about the logs


All times are GMT -4. The time now is 21:59.

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