AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Static and new (https://forums.alliedmods.net/showthread.php?t=215242)

manfailui 05-05-2013 06:51

Static and new
 
PHP Code:

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



so..this function only run one time?

hornet 05-05-2013 07:02

Re: Static and new
 
Have a read here.

manfailui 05-05-2013 07:07

Re: Static and new
 
Quote:

Originally Posted by hornet (Post 1946160)
Have a read here.

thank you very much

didoWEE 05-05-2013 08:58

Re: Static and new
 
For static, I know just that I must use it if I make variable more than one time in a second.


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

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