memcpy problem
#1

http://prntscr.com/g7px5j - OnPlayerConnect
http://prntscr.com/g7pxaq - OnGameModeInit
ofc PlayerData[MAX_PLAYERS + 1][ENUM_PLAYER_DATA]

Tried sizeof PlayerData[][] and without any brackets []
Reply
#2

Why use memcpy at all? Both arrays are the same size so it should simply be a matter of
Код:
PlayerData[playerid] = PlayerData[MAX_PLAYERS];
Also please don't make screenshots of text. Copy-pasting isn't that hard.
Reply
#3

I know that way (PlayerData[playerid] = PlayerData[MAX_PLAYERS])

but i heard that memcpy way is 'faster'

anyway tnx
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)