Raised This Month: $ Target: $400
 0% 

Creating an entity messes up


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
VEN
Veteran Member
Join Date: Jan 2005
Old 01-03-2007 , 17:29   Re: Creating an entity messes up
Reply With Quote #8

You have to use pev_valid(ent).
You have to do something like that:
Code:
public forward_keyvalue(ent2, kvdid) {
    if (!pev_valid(ent2)) // if entity isn't valid
        return FMRES_IGNORED // do not perform any action
 
   // do something here
 
    return FMRES_IGNORED // at the end of function
}

Last edited by VEN; 01-03-2007 at 17:31.
VEN 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 22:28.


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