Raised This Month: $ Target: $400
 0% 

Few Questions


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Drak
Veteran Member
Join Date: Jul 2005
Old 11-20-2006 , 19:34   Few Questions
Reply With Quote #1

Just some simple questions, what would be better in the functions? (Performance wise)
Code:
new name[33] client_print(id,print_chat,"Name: %s",get_user_name(id,name,32))
Or
Code:
new name[33] get_user_name(id,name,32) client_print(id,print_chat,"Name: %s",name)
Or would they both be the same?

Also, are 'enums' just like defines, but in a struct like form?
Code:
enum {      ONE = 1      TWO = 2      THREE = 3 }
Code:
#define ONE 1 #define TWO 2 #define THREE 3
Would this be the same?
__________________
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 07:01.


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