Raised This Month: $ Target: $400
 0% 

set_task...


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
shine771
Senior Member
Join Date: Jun 2007
Old 06-25-2007 , 09:55   set_task...
Reply With Quote #1

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.
shine771 is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 06-25-2007 , 10:03   Re: set_task...
Reply With Quote #2

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")
__________________
Still...lovin' . Connor noob! Hello

Last edited by Alka; 06-25-2007 at 10:10.
Alka is offline
shine771
Senior Member
Join Date: Jun 2007
Old 06-25-2007 , 10:14   Re: set_task...
Reply With Quote #3

Thanks. I was so stupid..
shine771 is offline
Reply


Thread Tools
Display Modes

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 21:23.


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