View Single Post
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 02-24-2010 , 17:14   Re: Infractions System v0.1.4
Reply With Quote #10

1. "infractions acumulation" -> "infractions accumulation".

2. "infractions accumulation" should be ML like all others.

3.
Code:
if ( ++g_iInfractionsCount[ iPlayer ] == g_iCacheCvarMaxInfractions )

Code:
if ( ++g_iInfractionsCount[ iPlayer ] >= g_iCacheCvarMaxInfractions )
Could bug if the max is changed and players infractions become higher than the max, thus adding more infractions won't ever equal the max.
That occurs a few times throughout the plugin.

4. nfvault uses an actual file to be passed to the functions.
Therefore, "amx_infractions" would be this path: "cstrike/amx_infractions" where it would be a file with no extension.
nfvault has a built-in function for you to use:
Code:
new g_szVaultFile[ 128 ]; public plugin_init( ) {     nfv_file( "amx_infractions.txt", g_szVaultFile, charsmax( g_szVaultFile ) ); }
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline