AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   how to pass multiple arrays to task (https://forums.alliedmods.net/showthread.php?t=89929)

ehha 04-12-2009 05:52

how to pass multiple arrays to task
 
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

Bugsy 04-12-2009 10:11

Re: how to pass multiple arrays to task
 
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 );



ehha 04-12-2009 11:10

Re: how to pass multiple arrays to task
 
Thanks Bugsy.
I've searched for multiple array(s) and found nothing, didn't think of "string arguments" :P


All times are GMT -4. The time now is 02:17.

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