SA-MP Forums Archive
[ERRO]PWN erro ao copilar - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [ERRO]PWN erro ao copilar (/showthread.php?tid=179424)



[ERRO]PWN erro ao copilar - k1t0 - 26.09.2010

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


Re: [ERRO]PWN erro ao copilar - Gustavob - 26.09.2010

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


Re: [ERRO]PWN erro ao copilar - k1t0 - 26.09.2010

eu te amo cara