Posts: 154
Threads: 31
Joined: Oct 2009
Reputation:
0
I have alot of New `s in my server like 100 and my server is using a lot of cpu when a lot of players are on . I just coded my drug system using #define , I was wondering whats better to use or if theirs a difference between using new and define what one take more memory if it dose ?
Posts: 154
Threads: 31
Joined: Oct 2009
Reputation:
0
ok thanks so your saying try and change theese
new weed[MAX_PLAYERS];
new coke[MAX_PLAYERS];
new crack[MAX_PLAYERS];
new hash1[MAX_PLAYERS];
new heroin[MAX_PLAYERS];
new tobbacco[MAX_PLAYERS];
new extacy[MAX_PLAYERS];
new lsd[MAX_PLAYERS];
new acid[MAX_PLAYERS];
new level[MAX_PLAYERS];
new logged[MAX_PLAYERS];
new serverrank[MAX_PLAYERS];
new muted[MAX_PLAYERS];
new serverpoints[MAX_PLAYERS];
new WeaponSpawn[MAX_PLAYERS];
new Teleport[MAX_PLAYERS];
new JobSpammed[MAX_PLAYERS];
new InJail[MAX_PLAYERS];
new PlayerWantedLevel[MAX_PLAYERS];
new gTeam[MAX_PLAYERS];
new DMZone[MAX_PLAYERS];