SA-MP Forums Archive
[Ajuda] Erro no for() - 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 no for() (/showthread.php?tid=428712)



Erro no for() - Juniiro3 - 06.04.2013

Olб a todos, e hoje vim aqui perguntar se alguйm sabe o motivo desse erro:
Invalid function or declaration
Linha:
pawn Код:
#define MAX_PAGAMENTO 5000
#define PAGAMENTO         10

for (PAGAMENTO; PAGAMENTO < MAX_PAGAMENTO; PAGAMENTO++)
OBS: Isso й para um sistema de taximetro
A linha que deu erro e a linha do for(PAGAMENTO; PAGAMENTO < MAX_PAGAMENTO; PAGAMENTO++)



Respuesta: Erro no for() - Parka - 06.04.2013

pawn Код:
#define MAX_PAGAMENTO 5000
#define PAGAMENTO         10

for (new pagamento = 10; pagamento < MAX_PAGAMENTO; pagamento++)



Re: Erro no for() - Lуs - 06.04.2013

Que isso?

Poste o cуdigo inteiro, porque eu nгo entendi nada para que serve esse taxнmetro.


Re: Erro no for() - Gii - 06.04.2013

pawn Код:
#define MAX_PAGAMENTO 5000

for ( new PAGAMENTO = 10; PAGAMENTO < MAX_PAGAMENTO; PAGAMENTO++)
Ou

pawn Код:
#define MAX_PAGAMENTO 5000
#define PAGAMENTO         10

for (new pagamento = PAGAMENTO; pagamento < MAX_PAGAMENTO; pagamento++)