[ERRO]PWN erro ao copilar
#1

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;
}
//*
Reply
#2

apaga as duas stocks porque elas ja estao definidas (ou no gm ou em alguma include)
Reply
#3

eu te amo cara
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)