SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Português/Portuguese

Reply
 
Thread Tools Display Modes
Old 25/06/2020, 12:18 AM   #1
Anonymous637
Big Clucker
 
Join Date: Jan 2019
Posts: 118
Reputation: 0
Question Ajuda com erros ao compilar FS

fui compilar um FS e deu os seguintes erros:

Code:
C:\Users\Usuario\Downloads\home\samp\clients\bvm\pawno\include\DOF2.inc(1811) : warning 219: local variable "n" shadows a variable at a preceding level
C:\Users\Usuario\Downloads\home\samp\clients\bvm\filterscripts\testee.pwn(48) : error 029: invalid expression, assumed zero
C:\Users\Usuario\Downloads\home\samp\clients\bvm\filterscripts\testee.pwn(48) : error 001: expected token: ")", but found ";"
C:\Users\Usuario\Downloads\home\samp\clients\bvm\filterscripts\testee.pwn(112) : error 001: expected token: "-identifier-", but found "["
C:\Users\Usuario\Downloads\home\samp\clients\bvm\filterscripts\testee.pwn(114) : error 029: invalid expression, assumed zero
C:\Users\Usuario\Downloads\home\samp\clients\bvm\filterscripts\testee.pwn(114) : error 035: argument type mismatch (argument 1)
C:\Users\Usuario\Downloads\home\samp\clients\bvm\filterscripts\testee.pwn(114) : error 020: invalid symbol name ""
C:\Users\Usuario\Downloads\home\samp\clients\bvm\filterscripts\testee.pwn(114) : fatal error 107: too many error messages on one line


LINHAS:

PHP Code:
48:    AntiDeAMX();
111-114:   public OnPlayerSpawn(playerid) {
    new 
aname1[MAX_PLAYER_NAME], file[40];
    
GetPlayerName(playeridaname1sizeof(aname1));
    
format(file2sizeof file2), PASTA_CONTASaname1);
linha com erro 1811 mas coloquei da 1805-1819:   stock DOF2::num_hash (buf [])
{
    new
        
length strlen (buf),
        
s1 1,
        
s2 0,
        
n;

    for (
0lengthn++)
    {
       
s1 = (s1 buf [n]) % 65521;
       
s2 = (s2 s1) % 65521;
    }
    return (
s2 << 16) + s1;

Anonymous637 is offline   Reply With Quote
Old 25/06/2020, 01:35 PM   #2
MaddDogg
Little Clucker
 
Join Date: Apr 2020
Location: State of San Andreas
Posts: 31
Reputation: 5
Default Re: Ajuda com erros ao compilar FS

Quote:
format(file2, sizeof file2), PASTA_CONTAS, aname1);
Está faltando abrir o parenteses do sizeof.

Tente:
Quote:
format(file2, sizeof (file2), PASTA_CONTAS, aname1);
Outra coisa, você criou uma variável com o nome file, mas no format você está usando file2?
MaddDogg is offline   Reply With Quote
Old 27/06/2020, 06:39 PM   #3
Anonymous637
Big Clucker
 
Join Date: Jan 2019
Posts: 118
Reputation: 0
Default Re: Ajuda com erros ao compilar FS

O que eu faço?
Anonymous637 is offline   Reply With Quote
Old 27/06/2020, 06:47 PM   #4
Hazard
Big Clucker
 
Hazard's Avatar
 
Join Date: May 2020
Location: Brazil
Posts: 158
Reputation: 3
Default Re: Ajuda com erros ao compilar FS

cara esse deamx ta em alguma public? se ele tiver perdido apaga ele ou coloca na public onplayerspawn
Hazard is online now   Reply With Quote
Old 27/06/2020, 08:50 PM   #5
Anonymous637
Big Clucker
 
Join Date: Jan 2019
Posts: 118
Reputation: 0
Default Re: Ajuda com erros ao compilar FS

Não tô entendendo essa msg na log já tem bastante tempo que tenho essa gm e nunca deu isso
Anonymous637 is offline   Reply With Quote
Old 27/06/2020, 10:26 PM   #6
Chefão
Huge Clucker
 
Chefão's Avatar
 
Join Date: Mar 2011
Location: Brasil - São Paulo
Posts: 493
Reputation: 21
Default Re: Ajuda com erros ao compilar FS

exclui esse AntiDeAMX e coloca outro pq esse ja está ultrapassado e tem como decompilar com ele
__________________


-~ Contato ~-
Skype: chefao.samp
Discord: RafaFusioN#2813
Chefão is offline   Reply With Quote
Old 27/06/2020, 10:37 PM   #7
Hazard
Big Clucker
 
Hazard's Avatar
 
Join Date: May 2020
Location: Brazil
Posts: 158
Reputation: 3
Default Re: Ajuda com erros ao compilar FS

Quote:
Originally Posted by Chefão View Post
exclui esse AntiDeAMX e coloca outro pq esse ja está ultrapassado e tem como decompilar com ele
sabe de um anti de amx que funcione ?
Hazard is online now   Reply With Quote
Old 27/06/2020, 10:42 PM   #8
Chefão
Huge Clucker
 
Chefão's Avatar
 
Join Date: Mar 2011
Location: Brasil - São Paulo
Posts: 493
Reputation: 21
Default Re: Ajuda com erros ao compilar FS

Quote:
Originally Posted by Hazard View Post
sabe de um anti de amx que funcione ?
coloca isso no começo do OnGameModeInit

pawn Code:
new a[][15] = { "?","0","?" };
#pragma unused a
new b[][15] = { "?","?" };
#pragma unused b
new c[][10] = { "?","?","?"};
#pragma unused c

e tem q ser assim n pode ser por função
__________________


-~ Contato ~-
Skype: chefao.samp
Discord: RafaFusioN#2813
Chefão is offline   Reply With Quote
Old 29/06/2020, 06:57 PM   #9
Anonymous637
Big Clucker
 
Join Date: Jan 2019
Posts: 118
Reputation: 0
Default Re: Ajuda com erros ao compilar FS

esse FS nao tem esse on gamemode init
Anonymous637 is offline   Reply With Quote
Old 29/06/2020, 07:12 PM   #10
Khivory
Huge Clucker
 
Khivory's Avatar
 
Join Date: Feb 2020
Posts: 367
Reputation: 23
Default Re: Ajuda com erros ao compilar FS

Quote:
Originally Posted by Anonymous637 View Post
esse FS nao tem esse on gamemode init
OnFILTERSCRIPTinit
OnGAMEMODEinit
Khivory is online now   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Ajuda] erros ao compilar :- Diogofcr Português/Portuguese 4 17/06/2012 02:24 PM
[AJUDA]4 erros ao compilar [STR]Matrix Português/Portuguese 9 05/03/2012 11:41 PM
[AJUDA] Erros ao compilar GM kratty Português/Portuguese 4 04/03/2012 03:17 AM
[AJUDA] erros ao compilar Over_King Português/Portuguese 10 05/01/2012 10:42 PM
[Ajuda] Erros Ao Compilar! Renno3D Português/Portuguese 3 19/12/2011 05:51 PM


All times are GMT. The time now is 03:30 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.