Problem with memcpy - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Problem with memcpy (
/showthread.php?tid=626435)
Problem with memcpy -
danielpalade - 15.01.2017
-- DELETED --
Re: Problem with memcpy -
Lordzy - 15.01.2017
Код:
memcpy(Veh[playerid][0], Veh[MAX_PLAYERS][8], 0, sizeof(Veh[][])*4, sizeof(Veh[][]));
MAX_PLAYERS is the upper limit of your first dimension, so values up to (MAX_PLAYERS - 1) can only be used in the first index.