25.06.2016, 17:20
Wow nice.
Ok so I want to ask a question, is the memcpy method to reset an array faster than this?
Ok so I want to ask a question, is the memcpy method to reset an array faster than this?
PHP Code:
enum P_DATA {
p_money,
p_stuff,
p_whatever
}
new
Player[MAX_PLAYERS][P_DATA],
resetPlayer[P_DATA]
;
// anywhere in the code:
Player[playerid] = resetPlayer;