23.10.2018, 14:02
Make it a macro:
First parameter is the destination string which is `ClanInfo[clanid][ClanName]`
Second parameter is the source which is `clanname`
Third parameter is the length which is optional unless it is an enum-array.
pawn Код:
#if !defined strcpy
#define strcpy(%0,%1) strcat((%0[0] = '\0', %0), %1)
#endif
Second parameter is the source which is `clanname`
Third parameter is the length which is optional unless it is an enum-array.
pawn Код:
strcpy(ClanInfo[clanid][ClanName], clanname, 32);