Raised This Month: $ Target: $400
 0% 

set_task with str?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
MPNumB
Veteran Member
Join Date: Feb 2007
Location: Lithuania
Old 11-15-2007 , 14:30   set_task with str?
Reply With Quote #1

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).
__________________
Skill and no annoying bugs with fixed balance issues is my goal!
My approved plugins what don't show up in Approved List:
* Bomb/Death/CSS Radar
* HotVision
___
Need help? Please check this documentation first.
MPNumB is offline
Send a message via Skype™ to MPNumB
M249-M4A1
I <3 Mac
Join Date: May 2005
Location: Not interested
Old 11-15-2007 , 14:58   Re: set_task with str?
Reply With Quote #2

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
__________________
M249-M4A1 is offline
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 11-15-2007 , 18:16   Re: set_task with str?
Reply With Quote #3

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.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
Reply



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:14.


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