plugins/admin-flatfile/admin-flatfile.sp
changeset 1432 d5001413aba7
parent 1330 ab94316bb52b
child 1947 e73a1e51833b
     1.1 --- a/plugins/admin-flatfile/admin-flatfile.sp	Sun Sep 16 03:32:00 2007 +0000
     1.2 +++ b/plugins/admin-flatfile/admin-flatfile.sp	Sun Sep 16 03:45:06 2007 +0000
     1.3 @@ -49,6 +49,7 @@
     1.4  new bool:g_LoggedFileName = false;			/* Whether or not the file name has been logged */
     1.5  new g_ErrorCount = 0;						/* Current error count */
     1.6  new g_IgnoreLevel = 0;						/* Nested ignored section count, so users can screw up files safely */
     1.7 +new g_CurrentLine = 0;						/* Current line we're on */
     1.8  new String:g_Filename[PLATFORM_MAX_PATH];	/* Used for error messages */
     1.9  
    1.10  #include "admin-overrides.sp"
    1.11 @@ -81,12 +82,15 @@
    1.12  	
    1.13  	VFormat(buffer, sizeof(buffer), format, 2);
    1.14  	
    1.15 -	LogError(" (%d) %s", ++g_ErrorCount, buffer);
    1.16 +	LogError(" (line %d) %s", g_CurrentLine, buffer);
    1.17 +	
    1.18 +	g_ErrorCount++;
    1.19  }
    1.20  
    1.21  InitGlobalStates()
    1.22  {
    1.23  	g_ErrorCount = 0;
    1.24  	g_IgnoreLevel = 0;
    1.25 +	g_CurrentLine = 0;
    1.26  	g_LoggedFileName = false;
    1.27  }