[Ajuda] Erros.
#1

Alguem me ajuda com esses erros pf?


pawn Код:
C:\Users\Carlos\Desktop\Nova Pasta\hdddd.pwn(1990) : error 047: array sizes do not match, or destination array is too small
C:\Users\Carlos\Desktop\Nova Pasta\hdddd.pwn(1994) : error 047: array sizes do not match, or destination array is too small
C:\Users\Carlos\Desktop\Nova Pasta\hdddd.pwn(2000) : error 047: array sizes do not match, or destination array is too small
C:\Users\Carlos\Desktop\Nova Pasta\hdddd.pwn(2157) : error 047: array sizes do not match, or destination array is too small
C:\Users\Carlos\Desktop\Nova Pasta\hdddd.pwn(2321) : error 047: array sizes do not match, or destination array is too small
C:\Users\Carlos\Desktop\Nova Pasta\hdddd.pwn(2370) : error 047: array sizes do not match, or destination array is too small
C:\Users\Carlos\Desktop\Nova Pasta\hdddd.pwn(2400) : error 047: array sizes do not match, or destination array is too small
C:\Users\Carlos\Desktop\Nova Pasta\hdddd.pwn(2422) : error 047: array sizes do not match, or destination array is too small
C:\Users\Carlos\Desktop\Nova Pasta\hdddd.pwn(3037) : error 047: array sizes do not match, or destination array is too small
C:\Users\Carlos\Desktop\Nova Pasta\hdddd.pwn(3076) : error 047: array sizes do not match, or destination array is too small
C:\Users\Carlos\Desktop\Nova Pasta\hdddd.pwn(3186) : error 047: array sizes do not match, or destination array is too small
C:\Users\Carlos\Desktop\Nova Pasta\hdddd.pwn(3510) : error 047: array sizes do not match, or destination array is too small
C:\Users\Carlos\Desktop\Nova Pasta\hdddd.pwn(3515) : error 047: array sizes do not match, or destination array is too small
C:\Users\Carlos\Desktop\Nova Pasta\hdddd.pwn(4390) : error 047: array sizes do not match, or destination array is too small
C:\Users\Carlos\Desktop\Nova Pasta\hdddd.pwn(4411) : error 047: array sizes do not match, or destination array is too small
C:\Users\Carlos\Desktop\Nova Pasta\hdddd.pwn(4751) : error 047: array sizes do not match, or destination array is too small
C:\Users\Carlos\Desktop\Nova Pasta\hdddd.pwn(12744) : error 047: array sizes do not match, or destination array is too small
C:\Users\Carlos\Desktop\Nova Pasta\hdddd.pwn(12744) : error 047: array sizes do not match, or destination array is too small
C:\Users\Carlos\Desktop\Nova Pasta\hdddd.pwn(13944) : error 021: symbol already defined: "strtok"
C:\Users\Carlos\Desktop\Nova Pasta\hdddd.pwn(13959) : error 047: array sizes do not match, or destination array is too small
C:\Users\Carlos\Desktop\Nova Pasta\hdddd.pwn(14252) : error 047: array sizes do not match, or destination array is too small
C:\Users\Carlos\Desktop\Nova Pasta\hdddd.pwn(14494) : error 047: array sizes do not match, or destination array is too small
C:\Users\Carlos\Desktop\Nova Pasta\hdddd.pwn(14633) : error 047: array sizes do not match, or destination array is too small
C:\Users\Carlos\Desktop\Nova Pasta\hdddd.pwn(14658) : error 047: array sizes do not match, or destination array is too small
C:\Users\Carlos\Desktop\Nova Pasta\hdddd.pwn(14695) : error 047: array sizes do not match, or destination array is too small
C:\Users\Carlos\Desktop\Nova Pasta\hdddd.pwn(14722) : error 047: array sizes do not match, or destination array is too small

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


26 Errors.
Reply
#2

vocк se esqueceu de fechar alguma funзгo ( } { )...

se estiver isso no seu GM remova e compila, e me diz se deu certo.
PHP код:
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;

Reply
#3

Eu troquei [128] por [256] e ficou 12 erros


Agora removi oque vc falou ai encima e ficou

esse erro aqui n consigo tirar

pawn Код:
C:\Users\Carlos\Desktop\Nova Pasta\hdddd.pwn(15856) : error 021: symbol already defined: "HexToInt"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


9 Errors.
Linha :

pawn Код:
stock HexToInt(string[])
{
    new i = 0;
    new cur = 1;
    new res = 0;
    for (i = strlen(string); i > 0; i--)
    {
        if (string[i-1] < 58) res = res + cur*(string[i-1] - 48); else res = res + cur*(string[i-1] - 65 + 10);
        cur = cur*16;
    }
    return res;
}
Reply
#4

remove essa stock ae tambйm...
PHP код:
stock HexToInt(string[])
{
    new 
0;
    new 
cur 1;
    new 
res 0;
    for (
strlen(string); 0i--)
    {
        if (
string[i-1] < 58res res cur*(string[i-1] - 48); else res res cur*(string[i-1] - 65 10);
        
cur cur*16;
    }
    return 
res;

Reply
#5

Pronto deu vlw ai
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)