Raised This Month: $ Target: $400
 0% 

remove_task doesn't remove task


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 08-04-2011 , 15:38   Re: remove_task doesn't remove task
Reply With Quote #1

Your working example is good on the task part but verry bad on everything else. It has slowhacking, bad client cvar understanding (cl_dlmax has nothing to do with models and you have no reason to change it !) and you're sending HUD message to everyone with useless spaces.

Still, he doesn't need to add task offsets in the IDs because he wants to remove both tasks it seems and that would do.

@m0skVi4a look at the example below and you also might want to add the "else" I'm adding here:
Code:
    if(Timer[id] < get_pcvar_num(g_max))  
    {  
        Timer[id] += 1  
        set_task(1.0, "TimerMain", id) // this task has "id" after it, those that don't need to in order to parse the correct ID number in this function
    }
    else // add these too :}
        StopTimer(id)
__________________
Hunter-Digital 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 01:30.


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