View Single Post
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 01-18-2016 , 13:09   Re: Prototypes error
Reply With Quote #15

PHP Code:
    DataPack entityInfo;    
    
    
entityInfo.WriteCell(entity);
    
    
CreateDataTimer(15.0Timer_EntityentityInfo); 
The order of these statements needs to change. Specifically, it needs to be
PHP Code:
    DataPack entityInfo;    
    
    
CreateDataTimer(15.0Timer_EntityentityInfo);

    
entityInfo.WriteCell(entity); 
I know it seems backwards, but entityInfo is essentially a Handle and the Handle is created inside the CreateDataTimer call. However, because it's a Handle, the actual data it stores is essentially stored by reference.

Quote:
Originally Posted by WildCard65 View Post
Then what is the AMXX equivalent if it's not funcnum?
funcenum (i.e. function enumeration), not funcnum.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 01-18-2016 at 13:12.
Powerlord is offline