C:\Documents and Settings\OSCAR\Desktop\ROUTE.pwn(95) : warning 201: redefinition of constant/macro (symbol "MAX_STRING") C:\Documents and Settings\OSCAR\Desktop\ROUTE.pwn(12292) : error 017: undefined symbol "SetPDistance" C:\Documents and Settings\OSCAR\Desktop\ROUTE.pwn(13805) : error 021: symbol already defined: "strtok" C:\Documents and Settings\OSCAR\Desktop\ROUTE.pwn(13820) : error 047: array sizes do not match, or destination array is too small C:\Documents and Settings\OSCAR\Desktop\ROUTE.pwn(18927) : error 017: undefined symbol "ReturnUser" C:\Documents and Settings\OSCAR\Desktop\ROUTE.pwn(18972) : error 017: undefined symbol "ReturnUser" C:\Documents and Settings\OSCAR\Desktop\ROUTE.pwn(19017) : error 017: undefined symbol "ReturnUser" C:\Documents and Settings\OSCAR\Desktop\ROUTE.pwn(19062) : error 017: undefined symbol "ReturnUser" C:\Documents and Settings\OSCAR\Desktop\ROUTE.pwn(22403) : error 017: undefined symbol "ReturnUser" C:\Documents and Settings\OSCAR\Desktop\ROUTE.pwn(2242 : error 047: array sizes do not match, or destination array is too small C:\Documents and Settings\OSCAR\Desktop\ROUTE.pwn(22543) : error 017: undefined symbol "ReturnUser" C:\Documents and Settings\OSCAR\Desktop\ROUTE.pwn(22705) : error 017: undefined symbol "ReturnUser" C:\Documents and Settings\OSCAR\Desktop\ROUTE.pwn(23005) : error 017: undefined symbol "ReturnUser" C:\Documents and Settings\OSCAR\Desktop\ROUTE.pwn(2303 : error 017: undefined symbol "ReturnUser" C:\Documents and Settings\OSCAR\Desktop\ROUTE.pwn(23837) : warning 219: local variable "mod" shadows a variable at a preceding level C:\Documents and Settings\OSCAR\Desktop\ROUTE.pwn(25741) : error 017: undefined symbol "ReturnUser" C:\Documents and Settings\OSCAR\Desktop\ROUTE.pwn(25793) : error 017: undefined symbol "ReturnUser" C:\Documents and Settings\OSCAR\Desktop\ROUTE.pwn(26045) : error 017: undefined symbol "ReturnUser" C:\Documents and Settings\OSCAR\Desktop\ROUTE.pwn(26237) : error 017: undefined symbol "ReturnUser" C:\Documents and Settings\OSCAR\Desktop\ROUTE.pwn(27183) : error 017: undefined symbol "ReturnUser" C:\Documents and Settings\OSCAR\Desktop\ROUTE.pwn(27667) : error 017: undefined symbol "ReturnUser" C:\Documents and Settings\OSCAR\Desktop\ROUTE.pwn(29210) : error 017: undefined symbol "ReturnUser" C:\Documents and Settings\OSCAR\Desktop\ROUTE.pwn(29560) : error 017: undefined symbol "ReturnUser" C:\Documents and Settings\OSCAR\Desktop\ROUTE.pwn(29754) : error 017: undefined symbol "ReturnUser" C:\Documents and Settings\OSCAR\Desktop\ROUTE.pwn(2981 : error 017: undefined symbol "ReturnUser" C:\Documents and Settings\OSCAR\Desktop\ROUTE.pwn(30052) : error 017: undefined symbol "ReturnUser" C:\Documents and Settings\OSCAR\Desktop\ROUTE.pwn(30101) : error 017: undefined symbol "ReturnUser" C:\Documents and Settings\OSCAR\Desktop\ROUTE.pwn(30207) : error 017: undefined symbol "ReturnUser" Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 26 Errors. |
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;
}
ReturnUser(text[], playerid = INVALID_PLAYER_ID)
{
new pos = 0;
while (text[pos] < 0x21)
{
if(text[pos] == 0) return INVALID_PLAYER_ID;
pos++;
}
new userid = INVALID_PLAYER_ID;
if(IsNumeric(text[pos]))
{
userid = strval(text[pos]);
if(userid >=0 && userid < PLAYERS)
{
if(!IsPlayerConnected(userid))
{
userid = INVALID_PLAYER_ID;
}
else
{
return userid;
}
}
}
new len = strlen(text[pos]);
new count = 0;
new name[MAX_PLAYER_NAME];
for(new i=0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
GetPlayerName(i, name, sizeof (name));
if(strcmp(name, text[pos], true, len) == 0)
{
if(len == strlen(name))
{
return i;
}
else
{
count++;
userid = i;
}
}
}
}
if(count != 1)
{
if(playerid != INVALID_PLAYER_ID)
{
if(count)
{
SendClientMessage(playerid, -1, "Muitos jogadores encontrados, por favor, procure com mais detalhes.");
}
else
{
SendClientMessage(playerid, -1, "Nenhum jogador encontrado.");
}
}
userid = INVALID_PLAYER_ID;
}
return userid;
}
Vocк editou o post amigo...
Linha 95: Vocк nгo pode redefinir o valor de uma constante. |
12292: SetPDistance(10); 13805:{ 13820: return result; 22428: } 23837: }*/ |
Constante definida como "const" o valor dela nunca pode ser alterado diferente de variбveis.
Vocк estб tentando alterar o valor dela nesta linha. Isso estб gerando aquele erro. Apague o que estб redefinindo do valor do const. Conferiu se seu ReturnUser estб certo? |
Desktop\ROUTE.pwn(95) : warning 201: redefinition of constant/macro (symbol "MAX_STRING") Desktop\ROUTE.pwn(2939) : error 009: invalid array size (negative, zero or out of bounds) Desktop\ROUTE.pwn(2939) : error 029: invalid expression, assumed zero Desktop\ROUTE.pwn(2939) : error 017: undefined symbol "srclen" Desktop\ROUTE.pwn(2939) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. |
new retval[MAX_STRING], srclen;
new srclen;
new retval[MAX_STRING];