AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   set_task with str? (https://forums.alliedmods.net/showthread.php?t=63237)

MPNumB 11-15-2007 14:30

set_task with str?
 
Is it possible somehow to set_task so @ the end it will look like this:

public task_name(index, const text[])

??? Plz help (set_task with index & str data).

M249-M4A1 11-15-2007 14:58

Re: set_task with str?
 
You cannot pass multiple parameters in a set_task(). What you can do is make an array with 2 elements or whatever, send that, and then take out the stuff from the array

Emp` 11-15-2007 18:16

Re: set_task with str?
 
Code:

  set_task ( time, "function", task_id, param, len )

 public function( param[], task_id )
//or
 public function( task_id, param[] )

I forget which one it is, but I think it is the first.


All times are GMT -4. The time now is 01:14.

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