28.01.2013, 16:17
pawn Код:
#include "a_samp.inc"
new string[100];
new something01[][] = { "01 - go to: %s" };
new something02[][] = { "02 - go to: %s" };
#define MyFunction(%0,%1,%2,%3) format(string, sizeof string, %1 == 1 ? something01[%2] : something02[%2], %3);\
printf("debug_%i - %s", %0, string)
main()
{
MyFunction(0, 1, 0, "sa-mp forums");
}
"redundant test: constant expression is non-zero".
Olhei alguns tуpicos mas o aviso resultava em outros exemplos de cуdigo, entгo nгo consegui entender bem o motivo...
