View Single Post
MAGNAT2645
Senior Member
Join Date: Nov 2015
Location: AlliedMods.net
Old 08-01-2019 , 05:07   Re: [question] Warning: Table downloadables is full, can't add xxx
Reply With Quote #5

StringTables are hardcoded so you can't.
You can use this code to dump (works like dumpstringtables command) stringtables into file.
Code:
	File hFile = OpenFile( "stringtables.txt", "w" );
	int iLength = GetNumStringTables();
	char sName[ PLATFORM_MAX_PATH ];

	for ( int i = 0; i < iLength; i++ ) {
		int iSize = GetStringTableNumStrings( i );
		GetStringTableName( i, sName, sizeof( sName ) );
		hFile.WriteLine( "Table %s\n  %i/%i items", sName, iSize, GetStringTableMaxStrings( i ) );
		for ( int x = 0; x < iSize; x++ ) {
			ReadStringTable( i, x, sName, sizeof( sName ) );
			hFile.WriteLine( "%i : %s", x, sName );
		}
		hFile.WriteLine( "" ); // newline
	}

	hFile.Close();
 	PrintToServer( "Dump written to stringtables.txt" );
__________________

Last edited by MAGNAT2645; 08-01-2019 at 05:44.
MAGNAT2645 is offline