SA-MP Forums Archive
[Ajuda] Erro na compilaзгo de um GM - 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] Erro na compilaзгo de um GM (/showthread.php?tid=447336)



Erro na compilaзгo de um GM - Emanuel17 - 29.06.2013

Eae.

Eu ando a ver alguns GM's para tirar algumas bases e ver cada coisa de cada um. Mas este gamemode na hora de compilar da este erro:

pawn Код:
C:\Users\eafve_000\Documents\New Virtual Streme\New Virtual Streme\New Virtual Extreme , Feito por Waling_Striker\gamemodes\NVE.pwn(6066) : error 021: symbol already defined: "strtok"
C:\Users\eafve_000\Documents\New Virtual Streme\New Virtual Streme\New Virtual Extreme , Feito por Waling_Striker\gamemodes\NVE.pwn(6081) : error 047: array sizes do not match, or destination array is too small
C:\Users\eafve_000\Documents\New Virtual Streme\New Virtual Streme\New Virtual Extreme , Feito por Waling_Striker\gamemodes\NVE.pwn(7429) : error 047: array sizes do not match, or destination array is too small
C:\Users\eafve_000\Documents\New Virtual Streme\New Virtual Streme\New Virtual Extreme , Feito por Waling_Striker\gamemodes\NVE.pwn(7448) : error 047: array sizes do not match, or destination array is too small
C:\Users\eafve_000\Documents\New Virtual Streme\New Virtual Streme\New Virtual Extreme , Feito por Waling_Striker\gamemodes\NVE.pwn(7480) : error 047: array sizes do not match, or destination array is too small
C:\Users\eafve_000\Documents\New Virtual Streme\New Virtual Streme\New Virtual Extreme , Feito por Waling_Striker\gamemodes\NVE.pwn(7535) : error 047: array sizes do not match, or destination array is too small
C:\Users\eafve_000\Documents\New Virtual Streme\New Virtual Streme\New Virtual Extreme , Feito por Waling_Striker\gamemodes\NVE.pwn(7848) : error 047: array sizes do not match, or destination array is too small
C:\Users\eafve_000\Documents\New Virtual Streme\New Virtual Streme\New Virtual Extreme , Feito por Waling_Striker\gamemodes\NVE.pwn(8353) : error 047: array sizes do not match, or destination array is too small
C:\Users\eafve_000\Documents\New Virtual Streme\New Virtual Streme\New Virtual Extreme , Feito por Waling_Striker\gamemodes\NVE.pwn(8391) : error 047: array sizes do not match, or destination array is too small
C:\Users\eafve_000\Documents\New Virtual Streme\New Virtual Streme\New Virtual Extreme , Feito por Waling_Striker\gamemodes\NVE.pwn(8531) : error 047: array sizes do not match, or destination array is too small
C:\Users\eafve_000\Documents\New Virtual Streme\New Virtual Streme\New Virtual Extreme , Feito por Waling_Striker\gamemodes\NVE.pwn(8626) : error 047: array sizes do not match, or destination array is too small
C:\Users\eafve_000\Documents\New Virtual Streme\New Virtual Streme\New Virtual Extreme , Feito por Waling_Striker\gamemodes\NVE.pwn(8672) : error 047: array sizes do not match, or destination array is too small
C:\Users\eafve_000\Documents\New Virtual Streme\New Virtual Streme\New Virtual Extreme , Feito por Waling_Striker\gamemodes\NVE.pwn(8712) : error 047: array sizes do not match, or destination array is too small
C:\Users\eafve_000\Documents\New Virtual Streme\New Virtual Streme\New Virtual Extreme , Feito por Waling_Striker\gamemodes\NVE.pwn(8784) : error 047: array sizes do not match, or destination array is too small
C:\Users\eafve_000\Documents\New Virtual Streme\New Virtual Streme\New Virtual Extreme , Feito por Waling_Striker\gamemodes\NVE.pwn(8822) : error 047: array sizes do not match, or destination array is too small
C:\Users\eafve_000\Documents\New Virtual Streme\New Virtual Streme\New Virtual Extreme , Feito por Waling_Striker\gamemodes\NVE.pwn(8851) : error 047: array sizes do not match, or destination array is too small
C:\Users\eafve_000\Documents\New Virtual Streme\New Virtual Streme\New Virtual Extreme , Feito por Waling_Striker\gamemodes\NVE.pwn(8942) : error 047: array sizes do not match, or destination array is too small
C:\Users\eafve_000\Documents\New Virtual Streme\New Virtual Streme\New Virtual Extreme , Feito por Waling_Striker\gamemodes\NVE.pwn(9295) : error 047: array sizes do not match, or destination array is too small
C:\Users\eafve_000\Documents\New Virtual Streme\New Virtual Streme\New Virtual Extreme , Feito por Waling_Striker\gamemodes\NVE.pwn(9489) : error 047: array sizes do not match, or destination array is too small
C:\Users\eafve_000\Documents\New Virtual Streme\New Virtual Streme\New Virtual Extreme , Feito por Waling_Striker\gamemodes\NVE.pwn(9530) : error 047: array sizes do not match, or destination array is too small
C:\Users\eafve_000\Documents\New Virtual Streme\New Virtual Streme\New Virtual Extreme , Feito por Waling_Striker\gamemodes\NVE.pwn(9602) : error 047: array sizes do not match, or destination array is too small
C:\Users\eafve_000\Documents\New Virtual Streme\New Virtual Streme\New Virtual Extreme , Feito por Waling_Striker\gamemodes\NVE.pwn(9917) : error 047: array sizes do not match, or destination array is too small
C:\Users\eafve_000\Documents\New Virtual Streme\New Virtual Streme\New Virtual Extreme , Feito por Waling_Striker\gamemodes\NVE.pwn(9964) : error 047: array sizes do not match, or destination array is too small
C:\Users\eafve_000\Documents\New Virtual Streme\New Virtual Streme\New Virtual Extreme , Feito por Waling_Striker\gamemodes\NVE.pwn(10319) : error 047: array sizes do not match, or destination array is too small
C:\Users\eafve_000\Documents\New Virtual Streme\New Virtual Streme\New Virtual Extreme , Feito por Waling_Striker\gamemodes\NVE.pwn(10466) : error 047: array sizes do not match, or destination array is too small
C:\Users\eafve_000\Documents\New Virtual Streme\New Virtual Streme\New Virtual Extreme , Feito por Waling_Striker\gamemodes\NVE.pwn(10521) : error 047: array sizes do not match, or destination array is too small
GM New Virtual Extreme

espero que me ajudem pfv


Re: Erro na compilaзгo de um GM - PlayeR_TheReturN - 29.06.2013

No Final do gamemode:

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;
}



Re: Erro na compilaзгo de um GM - Emanuel17 - 29.06.2013

Continua a dar o erro


Re: Erro na compilaзгo de um GM - PlayeR_TheReturN - 29.06.2013

Poderia postar as linhas que estгo dando o erro?


Re: Erro na compilaзгo de um GM - Emanuel17 - 29.06.2013

Sao todas as que tem esta variavel

pawn Код:
strtok(cmdtext, idx);