SA-MP Forums Archive
[Ajuda] Defines De Formataзao - 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] Defines De Formataзao (/showthread.php?tid=579820)



Defines De Formataзao - JuniorTheDM - 30.06.2015

Baixei Sistema de Admin Na Net !

Com Isso Da 26 Erros !
PHP код:
#define paramount(%0,%1) for(new %0; %0 < %1; ++%0) if(IsPlayerConnected(%0) && !IsPlayerNPC(%0)) 
Quando Eu Deleto da 7 eRROS ! mais botei o sistema numa FS E rodo Normal Oque Sera q й ?


Re: Defines De Formataзao - n0minal - 30.06.2015

Nгo tem erro nenhum nesta macro, o erro estб no seu gamemode, vocк deve ter usado a macro de forma incorreta... De qualquer forma aconselho a abandonar esta macro e passar a usar foreach.


Re: Defines De Formataзao - JuniorTheDM - 30.06.2015

PHP код:
warning 219local variable "str" shadows a variable at a preceding level 
TEM YSI DBUG ATUALIZADA AI ??


Re: Defines De Formataзao - Monotox - 30.06.2015

26 erros normalmente й falta de chaves. Tente jogar no tabulador do IpsBruno.


Re: Defines De Formataзao - zSuYaNw - 30.06.2015

Dб uma verificada:

pawn Код:
#define paramount(%0,%1) for(new %0; %0 < %1; ++%0) if(IsPlayerConnected(%0) && !IsPlayerNPC(%0))
Quando for usar:

pawn Код:
paramount(i, MAX_PLAYERS){


}

Ou poste o link do scripts para eu analisar.


Re: Defines De Formataзao - PT - 30.06.2015

Alguns usavam isso como espйcie de foreach.

Para isso use foreach mesmo..


Re: Defines De Formataзao - JuniorTheDM - 30.06.2015

Suyawn olha
PHP код:
C:\Users\Usuario\Desktop\SV\pawno\include\YSI\y_debug.inc(231) : warning 219local variable "str" shadows a variable at a preceding level
C
:\Users\Usuario\Desktop\SV\pawno\include\YSI\y_debug.inc(291) : warning 219local variable "str" shadows a variable at a preceding level
C
:\Users\Usuario\Desktop\SV\pawno\include\YSI\y_debug.inc(296) : warning 219local variable "str" shadows a variable at a preceding level
Pawn compiler 3.2.3664              Copyright 
(c1997-2006ITB CompuPhase

Header size
:           4592 bytes
Code size
:           118640 bytes
Data size
:           223188 bytes
Stack
/heap size:      16384 bytesestimated maxusageunknowndue to recursion
Total requirements
:  362804 bytes

3 Warnings




Re: Defines De Formataзao - zSuYaNw - 30.06.2015

Va em seu gamemode e troque str por string2.


Re: Defines De Formataзao - JuniorTheDM - 30.06.2015

vlw suyawn


Re: Defines De Formataзao - zSuYaNw - 30.06.2015

Quote:
Originally Posted by JuniorTheDM
Посмотреть сообщение
vlw suyawn
Tamo Junto!