Raised This Month: $ Target: $400
 0% 

Syntax info needed


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Lee
AlliedModders Donor
Join Date: Feb 2006
Old 12-27-2008 , 11:57   Re: Syntax info needed
Reply With Quote #7

As for your question of "can you use {variable} to create an array?", it would have been a lot quicker for you to test it and find out.

If you're not going to call change_task(), remove_task() or task_exists() and you're only sending one integer inside an array, you can leave the array empty and use the task ID to pass that integer. It doesn't matter if task IDs collide.

PHP Code:
public client_connect(id)
{
    
set_task(0.5"myTask"id__"b");
}

public 
myTask(id)
{
    
server_cmd("kick #%i"get_user_userid(id));

__________________
No support via PM.

Last edited by Lee; 12-27-2008 at 17:32.
Lee is offline
 


Thread Tools
Display Modes

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