Raised This Month: $ Target: $400
 0% 

Syntax info needed


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
danielkza
AMX Mod X Plugin Approver
Join Date: May 2007
Location: São Paulo - Brasil
Old 12-26-2008 , 20:14   Re: Syntax info needed
Reply With Quote #4

Quote:
Originally Posted by CodeMaster View Post
Dude all that I knew from before -.-
All that I asked was can I get first free id (I use multiple tasks), and can I send params directly without making an array...

Anyone else?
The usual way is to use defines for the multiple tasks and add/subtract them from the player ID.

E.g:
Code:
#define TASK1_ID 1000

whatever(id)
{
    set_task(1.0, "Task1", id + TASK1_ID)
}
public Task1(id)
{
    id -= TASK1_ID
    
    // blah
}
__________________

Community / No support through PM
danielkza 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 23:10.


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