25.05.2012, 17:34
I have a problem with strcpy, it always prints null
#define strcpy(%0,%1,%2) strcat((%0[0] = '\0', %0), %1, %2)
#define strcpy(%0,%1,%2) strcat((%0[0] = '\0', %0), %1, %2)
pawn Код:
new TestEx[MAX_PLAYERS][10],
Test[10] = "test12345"
;
strcpy(TestEx[1], Test, strlen(Test) + 1);
printf("Bandymas: %s", TestEx[1]);
strcpy(TestEx[1], Test);
printf("Bandymas #2: %s", TestEx[1]);