04.10.2015, 11:23
I dont understand you... I dont need help for enum, this variables are defined on the top of the script like, ex:
new PlayerCuffed[MAX_PLAYERS];
new PlayerCuffedTime[MAX_PLAYERS];
I start this topic because im not sure about trick 5, i read this for that trick in that thread:
I read this part:
, and i need anyone to tell me is this faster 18 times? (If i change what i have written in 1st post.)
new PlayerCuffed[MAX_PLAYERS];
new PlayerCuffedTime[MAX_PLAYERS];
I start this topic because im not sure about trick 5, i read this for that trick in that thread:
Quote:
Speed Tests: Using memset to set all elements of an array (3D) of 100 elements to zero:363,367,372 Setting elements of an array (3D) of 100 elements to zero using for loop:6662,6642,6687 Using memset is 18 times faster than looping through an array. |
Quote:
Code 1: Code: x = abc; y = abc; z = abc; Code 2: Code: x = y = z = abc; |