Raised This Month: $ Target: $400
 0% 

how to pass multiple arrays to task


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ehha
SourceMod Donor
Join Date: Apr 2006
Location: Sibiu
Old 04-12-2009 , 05:52   how to pass multiple arrays to task
Reply With Quote #1

Well... the title or how to make a different way to delay some code for 0.5 - 1 sec in a function.
Code:
do something delay 0.5sec remove something
ehha is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 04-12-2009 , 10:11   Re: how to pass multiple arrays to task
Reply With Quote #2

To pass multiple arrays you will need have them setup properly prior to sending. Essentially you will need to have them put into 1 large array and keep a record of when each one starts and ends. See this thread: http://forums.alliedmods.net/showthread.php?t=89263

PHP Code:
public YourFunction(id)
{
    
//do stuff

    
set_task0.5 "OtherFunction" id );

__________________

Last edited by Bugsy; 04-12-2009 at 10:14.
Bugsy is offline
ehha
SourceMod Donor
Join Date: Apr 2006
Location: Sibiu
Old 04-12-2009 , 11:10   Re: how to pass multiple arrays to task
Reply With Quote #3

Thanks Bugsy.
I've searched for multiple array(s) and found nothing, didn't think of "string arguments"
ehha is offline
Reply


Thread Tools
Display Modes

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 02:17.


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