Raised This Month: $ Target: $400
 0% 

This doesn't work: create_entity(const name[])


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Minimum
Senior Member
Join Date: Jun 2006
Old 01-19-2007 , 16:46   Re: This doesn't work: create_entity(const name[])
Reply With Quote #4

http://wiki.amxmodx.org/index.php/Op...atic_vs_Global

Quote:
A variable declared with the keyword "static" instead of "new" operates in the same way a global does (it is created only once) but the variable is local to the function; this means the code is much easier to read, while drastically improving speed just like a global variable.
The only thing I am unsure about is if it will act globally since I haven't tested it. It probably will though.
Minimum is offline
Send a message via AIM to Minimum Send a message via MSN to Minimum
 



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


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