Raised This Month: $ Target: $400
 0% 

Optimizations?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Drak
Veteran Member
Join Date: Jul 2005
Old 05-21-2007 , 22:23   Optimizations?
Reply With Quote #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
Drak is offline
Send a message via MSN to Drak
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:33.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode