AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   set_task question (https://forums.alliedmods.net/showthread.php?t=146546)

reinert 12-29-2010 06:42

set_task question
 
Hey, how to add set_task in one function, then remove it on new round.

like,

set_task(0.5, "heal", TASK1)

remove_task(TASK1)

??

ConnorMcLeod 12-29-2010 08:07

Re: set_task question
 
Exactly.

reinert 12-29-2010 08:11

Re: set_task question
 
But it says that TASK1 is undefined symbol :)

ConnorMcLeod 12-29-2010 08:12

Re: set_task question
 
Define it at top of sma.

#define TASK1 1354684 // some random number

reinert 12-29-2010 08:27

Re: set_task question
 
ok thanks!


All times are GMT -4. The time now is 02:10.

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