SA-MP Forums Archive
Ajuda Aqui - 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: Ajuda Aqui (/showthread.php?tid=576352)



Ajuda Aqui - CZ - 03.06.2015

Alguem me ajuda com esse erro? preciso mt desse FS

pawn Code:
C:\Users\Carlos\Desktop\Server\filterscripts\admin.pwn(48) : warning 213: tag mismatch
C:\Users\Carlos\Desktop\Server\filterscripts\admin.pwn(48) : warning 213: tag mismatch
C:\Users\Carlos\Desktop\Server\filterscripts\admin.pwn(53) : warning 213: tag mismatch
C:\Users\Carlos\Desktop\Server\filterscripts\admin.pwn(54) : warning 213: tag mismatch
C:\Users\Carlos\Desktop\Server\filterscripts\admin.pwn(124) : error 028: invalid subscript (not an array or too many subscripts): "arg0"
C:\Users\Carlos\Desktop\Server\filterscripts\admin.pwn(124) : warning 215: expression has no effect
C:\Users\Carlos\Desktop\Server\filterscripts\admin.pwn(124) : error 001: expected token: ";", but found "]"
C:\Users\Carlos\Desktop\Server\filterscripts\admin.pwn(124) : error 029: invalid expression, assumed zero
C:\Users\Carlos\Desktop\Server\filterscripts\admin.pwn(124) : fatal error 107: too many error messages on one line

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


4 Errors.



Re: Ajuda Aqui - widhost - 03.06.2015

Olб,

Posta o trecho de cуdigo para verificar isso.


Re: Ajuda Aqui - CZ - 03.06.2015

pawn Code:
function7A8(arg0, arg1[])
{
    new var0 = strlen(arg1);
    new var1 = 0;
    for(var1 = 0; var1 < var0; var1++)
    {
        arg0[var1] = arg1[var1];
    }
    arg0[var0] = 0;
    return 0;
}



Re: Ajuda Aqui - widhost - 03.06.2015

Vocк percebe que arg0 й diferente de arg0[] e arg1 й diferente de arg1[]?
arg0 й um elemento;
arg0[] й um array de elementos;

Uma ajuda para entender sobre arrays:

Quote:
https://sampforum.blast.hk/showthread.php?tid=318212
https://sampwiki.blast.hk/wiki/Scripting_Basics



Re: Ajuda Aqui - ipsLuan - 03.06.2015

Quote:
Originally Posted by CZ
View Post
pawn Code:
function7A8(arg0, arg1[])
{
    new var0 = strlen(arg1);
    new var1 = 0;
    for(var1 = 0; var1 < var0; var1++)
    {
        arg0[var1] = arg1[var1];
    }
    arg0[var0] = 0;
    return 0;
}
Estб tentando descompilar algum cуdigo?


Re: Ajuda Aqui - CZ - 03.06.2015

Quote:
Originally Posted by ipsLuan
View Post
Estб tentando descompilar algum cуdigo?
Nгo me ajuda ai cara


Re: Ajuda Aqui - zSuYaNw - 03.06.2015

Jб tentou:
pawn Code:
function7A8(arg0[], arg1[])
{
    new var0 = strlen(arg1);
    new var1 = 0;
    for(var1 = 0; var1 < var0; var1++)
    {
        arg0[var1] = arg1[var1];
    }
    arg0[var0] = 0;
    return 0;
}