Raised This Month: $ Target: $400
 0% 

Hold execution for specific time


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 04-22-2012 , 15:27   Re: Hold execution for specific time
Reply With Quote #6

Quote:
Originally Posted by Liverwiz View Post
so the id parameter in the set_task is the user's id?
Not necessarily but it can be and often is. Third parameter of set_task() is the task id but if you are only having one task per person you can use "id" as the task id.

Quote:
Originally Posted by Liverwiz View Post
say i wanted to send another argument to the ssTask function, would i put that in the parameters[] argument?
Yes.

Quote:
Originally Posted by Liverwiz View Post
PHP Code:
new sz_command[] = "+jump"
set_task(0.3"ssTask"idsz_command"a"iSsCount)

public 
ssTask(idsz_command[])
    
client_cmd(idsz_command
or what is that "parameters" argument there for?
I believe you need to do it like this:

PHP Code:
    new sz_command[6] = "+jump"
    
set_task(0.3"ssTask"idsz_commandsizeof(sz_command), "a"iSsCount)

public 
ssTask(sz_command[], id)  // this needs to be like this iirc.
{
    
client_cmd(idsz_command)


Quote:
Originally Posted by Liverwiz View Post
and, to get a better understanding, the '.' before 'flags' and 'repeat' do what?
They allow you to submit parameters to the function out of order and skip others as long as the ones you skip have default values.
__________________
fysiks 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 07:42.


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