Help problem with inc file
#1

Код:
(2987) : error 021: symbol already defined: "StripNewLine"
when i add
#include <F_AntiCheat>

then i got error
Reply
#2

Can you post line 2987 in your script here?
Reply
#3

this
Quote:

stock StripNewLine(string[])
line 2987 ------------ > {
new len = strlen(string); // Get the length of the given string

if (string[0] == 0) return ; // If the given string is empty, exit the function
if ((string[len - 1] == '\n') || (string[len - 1] == '\r')) // If the string ends with \n or \r
{
string[len - 1] = 0; // Replace the \n or \r with a 0 character
if (string[0]==0) return ; // If the string became empty, exit the function
if ((string[len - 2] == '\n') || (string[len - 2] == '\r')) // Check again if the string ends with \n or \r
string[len - 2] = 0; // Replace the \n or \r again with a 0 character
}
}

Reply
#4

so this means in anticheat or somewhere else you/somebody defined StripNewLine

just comment one of them
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)