Raised This Month: $ Target: $400
 0% 

set task disable


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Shadows Adi
AlliedModders Donor
Join Date: Aug 2019
Location: Romania
Old 01-09-2022 , 14:07   Re: set task disable
Reply With Quote #1

Quote:
Originally Posted by abdobiskra View Post
Code:
public function_check(id) {     if(task_exists(id + 100000))     {         client_print(id, print_chat,"Your Task is running!!");         remove_task(id + 100000);         return PLUGIN_HANDLED;     }     else     {         client_print(id, print_chat,"Your Task is  not running!!");         return PLUGIN_HANDLED;     }      return PLUGIN_HANDLED; }
That is wrong, because you already pass (id + 100000) value when you set task. So, if you print out (id) it will show you (id /* a integer value already*/ + 100000), you don't need to add again 100000 on those lines.
__________________


Accepting Paid Requests, contact PM.

MVP Of The Round View project on GITHUB / AlliedModders
CSGO REMAKE ~ CSGO MOD [STABLE + SOURCE CODE]
Shadows Adi 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 11:41.


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