[ajuda] 2 erros
#1

Код:
C:\Users\AsR\Servidores\FS\helpers.pwn(490) : error 021: symbol already defined: "strtok"
C:\Users\AsR\Servidores\FS\helpers.pwn(504) : error 047: array sizes do not match, or destination array is too small
Linhas:

Код:
489:    strtok(const string[], &index)
490: {
491:         	new length = strlen(string);
492:	    while ((index < length) && (string[index] <= ' '))
493:	    {
494:		    index++;
495:	    }
496:	    new offset = index;
497:     new result[20];
498:	    while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
499:	    {
500:		    result[index - offset] = string[index];
501:		    index++;
502:	    }
503:	    result[index - offset] = EOS;
504:	    return result;
505: }
Ajuda?
Reply
#2

Apaga isso aн porque jб tem uma, e se nгo tivesse acho que teria que aumentar o tamanho da new result ! Sу apagar...
Reply
#3

a strtok ja ta definida, apaga este codigo.
Reply
#4

Na linha 504 й erro estб em result. Tira o result e experimenta em por 1 ou true
Tipo:

pawn Код:
return 1;
ou

pawn Код:
return true;
Reply
#5

Quote:
Originally Posted by Douglas_FusioN
Посмотреть сообщение
pawn Код:
strock 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;
 }
To ate sem pawno aqui, mas acho que e assim.
strock ? й stock xD e o erro tб dizendo que jб tem, vai por mais ainda? OMG
Quote:
Originally Posted by Skun Fly
Посмотреть сообщение
Na linha 504 й erro estб em result. Tira o result e experimenta em por 1 ou true
Tipo:

pawn Код:
return 1;
ou

pawn Код:
return true;
Nгo faz isso /\ que vai... acontecer algo '-'. Nгo poe nгo, basta tirar stock pois jб foi definida, atй eu que nгo sou tгo boa em inglкs sei o que quer dizer, e em todo caso temos o ****** tradutor que nгo й aquilo que se diga "Nossa como o ****** tradutor й bom", mas quebra galho.
Traduзгo: erro 021: sнmbolo jб definido: "strtok"
Reply
#6

Eu li errado krl '-'
Reply
#7

Quote:
Originally Posted by humildadeforever
Посмотреть сообщение
strock ? й stock xD e o erro tб dizendo que jб tem, vai por mais ainda? OMG


Nгo faz isso /\ que vai... acontecer algo '-'. Nгo poe nгo, basta tirar stock pois jб foi definida, atй eu que nгo sou tгo boa em inglкs sei o que quer dizer, e em todo caso temos o ****** tradutor que nгo й aquilo que se diga "Nossa como o ****** tradutor й bom", mas quebra galho.
Traduзгo: erro 021: sнmbolo jб definido: "strtok"
humm. tem razгo se tirar o stock acaba com o outro erro tambйm
Reply
#8

Vlw
humildadeforever
era sу apaga mesmo!


+1
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)