Help problem with inc file - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help problem with inc file (
/showthread.php?tid=580115)
Help problem with inc file -
Mijata - 02.07.2015
Код:
(2987) : error 021: symbol already defined: "StripNewLine"
when i add
#include <F_AntiCheat>
then i got error
Re: Help problem with inc file -
NoahF - 02.07.2015
Can you post line 2987 in your script here?
Re: Help problem with inc file -
Mijata - 02.07.2015
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
}
}
|
Re: Help problem with inc file -
amirab - 02.07.2015
so this means in anticheat or somewhere else you/somebody defined StripNewLine
just comment one of them