[Ajudem-Me Por favor]
#1

o erro mudou agora esta dando isso:
Quote:

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.

Reply
#2

Acho que seu strtok nгo estб completo ou vocк tem VБRIAS variбveis com arrays pequenas para o que queres usar.

pawn Код:
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;
}
Atualize seu strtok pra ver.
Reply
#3

Verifique se vocк tambйm possui a funзгo ReturnUser.
pawn Код:
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;
}
Reply
#4

o erro continua amigo
Reply
#5

Vocк editou o post amigo...

Linha 95: Vocк nгo pode redefinir o valor de uma constante.
Mande as linhas dos outros erros nгo relacionados ao returnuser e confira se seu returnuser estб completo como o Shelby disse.
Reply
#6

Quote:
Originally Posted by Josma_cmd
Посмотреть сообщение
Vocк editou o post amigo...

Linha 95: Vocк nгo pode redefinir o valor de uma constante.
e o q eu faзo?
Reply
#7

Quote:
Originally Posted by Andrew_Indio
Посмотреть сообщение
e o q eu faзo?
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?
Reply
#8

linhas:
Quote:

12292: SetPDistance(10);
13805:{
13820: return result;
22428: }
23837: }*/
ai estao as linhas
Reply
#9

Quote:
Originally Posted by Josma_cmd
Посмотреть сообщение
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?
pronto conseguir ver eu nam tinha o ReturnUser
agora apenas deu isso
Quote:

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.

aki esta a linha do erro

pawn Код:
new retval[MAX_STRING], srclen;
Reply
#10

Mande o const MAX_STRING caso tiver.
Separe os news deixando dessa forma:
pawn Код:
new srclen;
new retval[MAX_STRING];
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)