Raised This Month: $ Target: $400
 0% 

Static Functions


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Seta00
The Seta00 user has crashed.
Join Date: Jan 2010
Location: Berlin
Old 03-17-2010 , 21:13   Re: Static Functions
Reply With Quote #4

Quote:
Originally Posted by Arkshine View Post
So, writting Function() is the same as static Function(), it would be implicit by default.
EDIT: Nevermind, AMXx compiler ignores section directives

No:
PHP Code:
static Function() { server_cmd("exit"); }
#section gaben
// oh my gosh my function is lost! 
Quote:
Originally Posted by Pawn Language Guide
#section name
Starts a new section for the generated code. Any variables and
functions that are declared “static” are only visible to the section
to which they belong. By default, each source file is a separate
section and there is only one section per file.
With the #section directive, you can create multiple sections in a
source file. The name of a section is optional, if it is not set, a unique
identifier for the source file is used for the name of the section.
Any declared section ends automatically at the end of the file.

Last edited by Seta00; 03-17-2010 at 21:18.
Seta00 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 08:43.


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