View Single Post
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 09-17-2009 , 04:00   Re: [TUT] EngFunc_* Interactive tutorial
Reply With Quote #3

Quote:
Originally Posted by joropito View Post
If anyone can check my code and fix/teach me what I'm doing wrong for this function I would be glad
PHP Code:
        if(equal(class, "func_buyzone") || equal(class, "player") || equal(class, "func_bomb_target")
            || 
equal(class, "func_breakable") || equal(class, "func_door"))
        {
            
fn_create_beam(originpoint6002550);    // Create green line from ID to ENT for 60 seconds
            
formatex(textcharsmax(text), "Found entity in sphere (ent:%i class:%s)"ent, class);
            
fn_log_cli(id"FindEntityInSphere"text);
        } 
->

PHP Code:
        fn_create_beam(originpoint6002550);    // Create green line from ID to ENT for 60 seconds
        
formatex(textcharsmax(text), "Found entity in sphere (ent:%i class:%s)"ent, class);
        
fn_log_cli(id"FindEntityInSphere"text); 
Also try not using the trace_handle 0 (global tracehandle)
Create one using
PHP Code:
ptr create_tr2() 
And after that free it using
PHP Code:
free_tr2(ptr
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.
ot_207 is offline