Raised This Month: $ Target: $400
 0% 

difference between new and static?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 04-25-2012 , 06:10   Re: difference between new and static?
Reply With Quote #5

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


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