AlliedModders

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

shine771 06-25-2007 09:55

set_task...
 
I know this is a dumb question... But why this doesn't work?!

Code:

set_task(get_cvar_num(something), "something", id)
or This:

Code:

set_task(get_cvar_num("something"), "something", id)
When i compiled it - it gave me this:
Code:

Warning: Tag mismatch on line 100
or This:
Code:

Error: Argument type mismatch (argument 1) on line 100
Can someone help me?
Thanks.

EDIT:I already searched FORUM - Dont post a link to Search =]

Sorry for my bad english.

Alka 06-25-2007 10:03

Re: set_task...
 
In set_task time is a float,so will be (1.0, 20.0, 33.1 etc.)
Use get_pcvar_float(pcvar) or get_cvar_float("cvar name") :wink:

shine771 06-25-2007 10:14

Re: set_task...
 
Thanks. I was so stupid..


All times are GMT -4. The time now is 21:23.

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