20.06.2014, 19:28
It gives the error because it expects arrays as parameters but it founds integers:
Nonetheless, I believe you want this function to copy a string to another but you can use strcat for that:
and an example:
string now holds "test" too.
pawn Код:
function610(arg0[], arg1[])
pawn Код:
#define strcpy(%0,%1) strcat((%0[0] = '\0', %0), %1)
pawn Код:
new
string[5],
string2[5] = "test";
strcpy(string, string2, 5);