Ses die error kommen.
C:\Users\Master\Desktop\Script\Script1.0\gamemodes\Script.pwn(49686) : error 021: symbol already defined: "StripNewLine"
C:\Users\Master\Desktop\Script\Script1.0\gamemodes\Script.pwn(49796) : error 021: symbol already defined: "mktime"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors
stock StripNewLine(string[]){
new len=strlen(string);
if(string[0]==0) return ;
if((string[len-1]=='\n')||(string[len - 1]=='\r')){
string[len - 1] = 0;
if(string[0]==0) return ;
if((string[len-2]=='\n')||(string[len-2]=='\r')) string[len-2]=0;
}
}
stock mktime(hour, minute, second, day, month, year)
{
static
days_of_month[12] =
{
31,
29,
31,
30,
31,
30,
31,
31,
30,
31,
30,
31
},
lMinute,
lHour,
lDay,
lMonth,
lYear,
lMinuteS,
lHourS,
lDayS,
lMonthS,
lYearS;
if (year != lYear)
{
lYearS = 0;
for (new j = 1970; j < year; j++)
{
lYearS += 31536000;
if ((!(j % 4) && (j % 100)) || !(j % 400)) lYearS += 86400;
}
lYear = year;
}
if (month != lMonth)
{
lMonthS = 0;
month--;
for (new i = 0; i < month; i++)
{
lMonthS += days_of_month[i] * 86400;
if ((i == 1) && ((!(year % 4) && (year % 100)) || !(year % 400))) lMonthS += 86400;
}
lMonth = month;
}
if (day != lDay)
{
lDayS = day * 86400;
lDay = day;
}
if (hour != lHour)
{
lHourS = hour * 3600;
lHour = hour;
}
if (minute != lMinute)
{
lMinuteS = minute * 60;
lMinute = minute;
}
return lYearS + lMonthS + lDayS + lHourS + lMinuteS + second;
}