Raised This Month: $ Target: $400
 0% 

set_task problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
BAILOPAN
Join Date: Jan 2004
Old 11-06-2005 , 18:08  
Reply With Quote #1

You aren't passing anything to set_task. You must do it like this:
Code:
#define MODEL_TASK 1337 set_task(time, "resetModel", MODEL_TASK+id) public resetModel(task_id) {    new id = task_id - MODEL_TASK    //...code }

When you specify only one extra parameter to set_task, it gets passed that same parameter as a number. Using this you can create a unique task for every player, by specifying a base number and using their id as an offset.
__________________
egg
BAILOPAN is offline
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 23:36.


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