you replaced #2 download with #2.1 right?
ok, here are the files I have, dll.cpp
Release 2
Code:
// Load & Initialise BotLogos from BotLogos.cfg
fpText = fopen ("cstrike/addons/podbot/botlogos.cfg", "r");
if (fpText == NULL)
{
strcpy (szError,"No BotLogos.cfg ! Using Defaults...\n");
ALERT (at_error, szError);
fp = fopen ("PODERROR.txt", "a"); fprintf (fp, szError); fclose (fp);
}
else
{
file_index = 0;
szBuffer[file_index] = 0; // null out Buffer
g_iNumLogos = 0;
while ((fpText != NULL) && (!feof (fpText)))
{
FillBufferFromFile(fpText,(char *)&szBuffer, file_index);
file_index = 0; // reset for next input line
if ((szBuffer[0] == '#') || (szBuffer[0] == 0) ||
(szBuffer[0] == '\r') || (szBuffer[0] == '\n'))
{
continue; // ignore comments or blank lines
}
strcpy (&szSprayNames[g_iNumLogos][0],&szBuffer[0]);
g_iNumLogos++;
}
g_iNumLogos--;
if (fpText != NULL)
{
fclose (fpText);
fpText = NULL;
}
}
// End BotLogos
Release 2.1
Code:
// Load & Initialise BotLogos from BotLogos.cfg
fp = fopen ("cstrike/addons/podbot/botlogos.cfg", "r");
if (fp == NULL)
UTIL_ServerPrint ("No BotLogos.cfg ! Using Defaults...\n");
else
{
g_iNumLogos = 0;
while (fgets (line_buffer, 256, fp) != NULL)
{
if ((line_buffer[0] == '#') || (line_buffer[0] == 0) || (line_buffer[0] == '\r') || (line_buffer[0] == '\n'))
continue; // ignore comments or blank lines
strcpy (szSprayNames[g_iNumLogos], GetField (line_buffer, 0));
g_iNumLogos++;
}
fclose (fp);
}
// End BotLogos
maybe I just messed up those with different versions, I'll double check that.
btw, is your botspray working? can you see those logos or just sound?