SA-MP Forums Archive
strcpy - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: strcpy (/showthread.php?tid=550671)



strcpy - CodeStyle175 - 14.12.2014

Hello!

I need strcpy where I just put to params and it will put string into dest string.


Re: strcpy - Ahammad - 14.12.2014

For example (playerid, params) here.


Re: strcpy - CodeStyle175 - 14.12.2014

strcpy(dest,string);


Re: strcpy - Lordzy - 15.12.2014

It's not defined by default, you've to include it as a custom function.
pawn Код:
stock strcpy(dest[], src[], size = sizeof(dest))
{
    dest[0] = EOS;
    return strcat(dest, src, size);
}
Where dest is the destination where you've to copy the src (source, to be copied).

NOTE : Next time request scripting support at 'Scripting Help' board.