26.09.2010, 21:09
C:\Documents and Settings\win.WWW-C10EAF28F1C\Desktop\plugins\gamemodes\MataMata2008 .pwn(213 : error 021: symbol already defined: "strtok"
C:\Documents and Settings\win.WWW-C10EAF28F1C\Desktop\plugins\gamemodes\MataMata2008 .pwn(2157) : error 021: symbol already defined: "PlayerName"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.
2138:
strtok(const string[], &index)
{
new length = strlen(string);
while ((index < length) && (string[index] <= ' '))
{
index++;
}
new offset = index;
new result[20];
while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
{
result[index - offset] = string[index];
index++;
}
result[index - offset] = EOS;
return result;
}
2157:
stock PlayerName(playerid)
{
new Name[MAX_PLAYERS];
GetPlayerName(playerid, Name, sizeof(Name));
return Name;
}
//*
C:\Documents and Settings\win.WWW-C10EAF28F1C\Desktop\plugins\gamemodes\MataMata2008 .pwn(2157) : error 021: symbol already defined: "PlayerName"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.
2138:
strtok(const string[], &index)
{
new length = strlen(string);
while ((index < length) && (string[index] <= ' '))
{
index++;
}
new offset = index;
new result[20];
while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
{
result[index - offset] = string[index];
index++;
}
result[index - offset] = EOS;
return result;
}
2157:
stock PlayerName(playerid)
{
new Name[MAX_PLAYERS];
GetPlayerName(playerid, Name, sizeof(Name));
return Name;
}
//*