Raised This Month: $ Target: $400
 0% 

difference between new and static?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
rak
Veteran Member
Join Date: Oct 2011
Location: banned country
Old 04-25-2012 , 06:55   Re: difference between new and static?
Reply With Quote #6

Quote:
Originally Posted by .Dare Devil. View Post
One question

PHP Code:

entity_think
(ent)
{
     static 
y
     y 
+= something


if entity_think is called "entity_think(130)" example
then y + 10 example and if entity_think is called "entity_think(129)"
then that old y + 10 or there come new y because func ent param is different?

i think it is a bad explanation ( bad english! )
if the entity_think param is different then what happen to the y?
static never clean his value;
if you want.. make a test in Ham_Spawn using a static
__________________

www.amxmodx-es.com

Steam: Luchokoldo
rak is offline
Send a message via MSN to rak Send a message via Skype™ to rak
 



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 07:47.


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