AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
|
07-18-2012
, 13:02
Re: AFK Manager (Version 3.4.3 / Updated June 3rd 2011)
|
#1097
|
I'll try that now and let you know
I'm dumb
...:: TnT Edit ::...
Code:
sm plugins load afk_manager
[SM] Loaded plugin afk_manager.smx successfully.
sm plugins list
[SM] Listing 46 plugins:
01...
46 <Error> "AFK Manager" (3.4.3) by Rothgar
Load Errors:
AFK Manager: Error detected in plugin startup (see error logs)
No error log entry. I have an error log for today, by chance, due to issue with curl ext, but there is nothing in the error log for AFKM. I have an afkm_<date>.log for weeks, and it's filled with data, so the plugin is working... just don't know why it's showing as <error> yet still running??
Example of what's in the afkm_20120718.log:
Whats even more weird, I deleted the translation file, and it still didn't write anything to the error log - unless it has to wait for an action to translate anything, I'll look at the source code right quick.
Somehow, the access permissions for the log folder was changed. After I added the appropriate permissions, no Error with the AFKManager... weird that other plugins weren't complaining...
Anyways, above issue resolved. Although, I'm using a slightly modified version:
Added,
PHP Code:
else if (strcmp(game_mod, "csgo", false) == 0)
{
LogAction(0, -1, "[AFK Manager] %T", "CSTRIKE", LANG_SERVER);
CSTRIKE = true;
}
starting at line 449
truncated diff
Code:
422 422 if (strcmp(game_mod, "insurgency", false) == 0)
423 423 {
424 424 LogAction(0, -1, "[AFK Manager] %T", "Insurgency", LANG_SERVER);
425 425 Insurgency = true;
426 426
427 427 g_sTeam_Index = 3;
428 428 }
429 429 else if (strcmp(game_mod, "synergy", false) == 0)
430 430 {
431 431 LogAction(0, -1, "[AFK Manager] %T", "Synergy", LANG_SERVER);
432 432 Synergy = true;
433 433 }
434 434 else if (strcmp(game_mod, "tf", false) == 0)
435 435 {
436 436 LogAction(0, -1, "[AFK Manager] %T", "TF2", LANG_SERVER);
437 437 TF2 = true;
438 438
439 439 // Hook AFK Convar
440 440 hCvarAFK = FindConVar("mp_idledealmethod");
441 441 hCvarTF2Arena = FindConVar("tf_gamemode_arena");
442 442 hCvarTF2WFPTime = FindConVar("mp_waitingforplayers_time");
443 443 }
444 444 else if (strcmp(game_mod, "cstrike", false) == 0)
445 + {
446 + LogAction(0, -1, "[AFK Manager] %T", "CSTRIKE", LANG_SERVER);
447 + CSTRIKE = true;
448 + }
449 + else if (strcmp(game_mod, "csgo", false) == 0)
445 450 {
446 451 LogAction(0, -1, "[AFK Manager] %T", "CSTRIKE", LANG_SERVER);
447 452 CSTRIKE = true;
448 453 }
449 454 /*
450 455 else if (strcmp(game_mod, "left4dead", false) == 0)
451 456 {
452 457 LogAction(0, -1, "[AFK Manager] %T", "L4D", LANG_SERVER);
453 458 L4D = true;
454 459 }
__________________
Last edited by TnTSCS; 07-18-2012 at 13:42.
|
|