Raised This Month: $ Target: $400
 0% 

Argument type mismatch


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Podarok
BANNED
Join Date: Jan 2011
Location: Narnia
Old 04-27-2013 , 06:59   Argument type mismatch
Reply With Quote #1

Code:
set_task(healing_interval, "do_HPS", id+1337, id, _, "b")
Argument type mismatch (argument 4)
What seems to be the problem ?

Last edited by Podarok; 04-27-2013 at 07:22.
Podarok is offline
EpicMonkey
buttmonkey
Join Date: Feb 2012
Old 04-27-2013 , 07:17   Re: Argument type mismatch
Reply With Quote #2

1337, id?

1337 + id?
EpicMonkey is offline
Podarok
BANNED
Join Date: Jan 2011
Location: Narnia
Old 04-27-2013 , 07:23   Re: Argument type mismatch
Reply With Quote #3

I corrected, however it gives me an argument type mismatch
Podarok is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 04-27-2013 , 07:32   Re: Argument type mismatch
Reply With Quote #4

id is not an array
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
baneado
Veteran Member
Join Date: Dec 2012
Location: amxmodx-es.com
Old 04-27-2013 , 07:33   Re: Argument type mismatch
Reply With Quote #5

http://www.amxmodx.org/funcwiki.php?...task&go=search
baneado is offline
jimaway
Heeeere's Jimmy!
Join Date: Jan 2009
Location: Estonia
Old 04-27-2013 , 08:51   Re: Argument type mismatch
Reply With Quote #6

Code:
set_task(healing_interval, "do_HPS", id+1337, { id }, 1, "b")
this should work, but there is really no reason to send same info in the parameter field that you already have in the id of the task

Last edited by jimaway; 04-27-2013 at 08:52.
jimaway 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 10:56.


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