Raised This Month: $ Target: $400
 0% 

global new or static?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Emp0wer
Member
Join Date: Jul 2010
Location: Ukraine mother
Old 08-23-2010 , 15:00   global new or static?
Reply With Quote #1

What is better?

PHP Code:
new g_classname[32]

public 
fw_Think(entity)
{
    
pev(entity,pev_classname,g_classname,31)

PHP Code:
public fw_Think(entity)
{
    new 
classname[32]
    
pev(entity,pev_classname,classname,31)

PHP Code:
public fw_Think(entity)
{
    static 
classname[32]
    
pev(entity,pev_classname,classname,31)

Emp0wer is offline
Send a message via ICQ to Emp0wer Send a message via Skype™ to Emp0wer
 



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 22:03.


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