Raised This Month: $ Target: $400
 0% 

Which is Better?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
AfteR.
Veteran Member
Join Date: Dec 2008
Location: λ
Old 02-08-2010 , 14:55   Which is Better?
Reply With Quote #1

It's simple, but I want to know which way is better:

PHP Code:
public client_putinserverid )
{
    new 
name[32]
    
get_user_name(idnamesizeof(name) - 1)
    
    
client_print(idprint_chat"%s has entered .."name)

or

PHP Code:
public client_putinserverid )
{
    static 
name[32]
    
get_user_name(idnamesizeof(name) - 1)
    
    
client_print(idprint_chat"%s has entered .."name)

In these case, which is better: static or new? (its just an example, it not necesarily has to be the name) and why..
AfteR. is offline
 



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:26.


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