27.02.2019, 09:25
Hey!
I'm just wondering whats the difference between these two for copying string into another string.
or using..
Which is better and why ?
I'm just wondering whats the difference between these two for copying string into another string.
PHP код:
enum PlayerData
{
pTag[32]
}
new pInfo[MAX_PLAYERS][PlayerData]
PHP код:
stock strcpy(dest[], const source[], maxlength=sizeof dest)
{
strcat((dest[0] = EOS, dest), source, maxlength);
}
strcpy(pInfo[playerid][pTag], "Something", sizeof(pInfo[playerid][pTag]));
PHP код:
format(pInfo[playerid][pTag], sizeof(pInfo[playerid][pTag], "Something");