Raised This Month: $ Target: $400
 0% 

DestroyForward help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
BOYSplayCS
BANNED
Join Date: Apr 2008
Location: Gainesville, FL
Old 02-01-2009 , 16:35   Re: DestroyForward help
Reply With Quote #2

You're lucky, I was just studying this earlier today.

DestroyForward() is basically used to destroy any forwards you set it to. It's found in the AMXx Core and doesn't require additional modules to run/compile.

here's an example

PHP Code:
set_task(delay,"fnDoForward"
PHP Code:
public fnDoForward()
{
    new 
iForward CreateMultiForward("plugin_init_delay",ET_IGNORE,FP_FLOAT),iReturn
    
if(iForward 0)
        return 
log_amx("Forward could not be created.")
    
    if(!
ExecuteForward(iForward,iReturn,delay))
        return 
log_amx("Could not execute forward.")
            return 
DestroyForward(iForward)

BOYSplayCS 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 01:43.


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