Raised This Month: $ Target: $400
 0% 

Static and new


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
manfailui
Member
Join Date: Jun 2012
Location: Hong Kong
Old 05-05-2013 , 06:51   Static and new
Reply With Quote #1

PHP Code:
public abc123()
{
    static 
g_number
    
    
if(g_number != 5)
    {
        
g_number 5
        abc123
()
    }


so..this function only run one time?
__________________
I Come from Hong Kong.
my English is very poor

Last edited by manfailui; 05-05-2013 at 06:52.
manfailui is offline
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 05-05-2013 , 07:02   Re: Static and new
Reply With Quote #2

Have a read here.
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.
hornet is offline
manfailui
Member
Join Date: Jun 2012
Location: Hong Kong
Old 05-05-2013 , 07:07   Re: Static and new
Reply With Quote #3

Quote:
Originally Posted by hornet View Post
Have a read here.
thank you very much
__________________
I Come from Hong Kong.
my English is very poor

Last edited by manfailui; 05-05-2013 at 07:08.
manfailui is offline
didoWEE
Senior Member
Join Date: Oct 2012
Location: Bulgaria
Old 05-05-2013 , 08:58   Re: Static and new
Reply With Quote #4

For static, I know just that I must use it if I make variable more than one time in a second.
didoWEE is offline
Reply



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


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