remove_task doesn't remove task
Hello.
Today i have started to make a plugin (timer) and i am now at the stop part It has continues to count. Here is my code PHP Code:
|
Re: remove_task doesn't remove task
Because you don't set tasks indexes in set_task natives in StartTimer function.
|
Re: remove_task doesn't remove task
It again don't work. It start hud message that write 0 seconds
|
Re: remove_task doesn't remove task
Add "id" to all tasks, ofc it gives out wrong results if it inputes 0 as id.
|
Re: remove_task doesn't remove task
I don't get it. Can you make it for me
|
Re: remove_task doesn't remove task
Yes, I got such problem..... 4 days./
here working example how to set ID and remove it PHP Code:
|
Re: remove_task doesn't remove task
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)) |
Re: remove_task doesn't remove task
NOnononono I forget to delete that. I was using it to get some info from clients// and set task for hud./ for another plugin so this example is horrible combination...
|
| All times are GMT -4. The time now is 01:30. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.