Detaljan opis problema: Ovako sad nezz ovo je neka greska u include fajlu, sacu vam dat ispod liniju u includeu
Dio skripte:
../include/gl_common.inc(80) : error 021: symbol already defined: "strtok"
../include/gl_common.inc(139) : error 021: symbol already defined: "isNumeric"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
SKRIPTA (PRVA JE LINIJA 80 PA ONDA 139):
80:
stock strtok(const string[], &index)
{
new length = strlen(string);
while ((index < length) && (string <= ' '))
{
index++;
}
new offset = index;
new result;
while ((index < length) && (string > ' ') && ((index - offset) < (sizeof(result) - 1)))
{
result[index - offset] = string;
index++;
}
result[index - offset] = EOS;
return result;
}
139:
stock isNumeric(const string[])
{
new length=strlen(string);
if (length==0) return false;
for (new i = 0; i < length; i++)
{
if (
(string > '9' || string < '0' && string!='-' && string!='+') // Not a number,'+' or '-'
|| (string=='-' && i!=0) // A '-' but not at first.
|| (string=='+' && i!=0) // A '+' but not at first.
) return false;
}
if (length==1 && (string=='-' || string=='+')) return false;
return true;
}
Neke slike/video za lakse dobivanje pomoci(neobavezno):
Hvala unaprijed...
