|
Author
|
Message
|
|
Veteran Member
|

05-21-2007
, 22:23
Optimizations?
|
#1
|
I was looking through a few of my plugins, and noticed I use a lot of functions/natives over again. (get_user_name,authid,time, etc, etc)
Would it be better to make a global variable for this? So i can just retrieve the players name/authid or whatever, without having to re-use that function over again.
And, let's say I went with this. And I have a array like so:
"g_playerName[33][64]"
and place the users name, and player index into it. How would i zero this out, so when the next player connects, it wont cause problems?
Would this be correct? "g_playerName[id][id] = 0"
__________________
Oh yeah
|
|
|
|