Raised This Month: $51 Target: $400
 12% 

FF2 Tag Mismatch problem, searching for help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
M76030
Senior Member
Join Date: Mar 2014
Location: Demoknighting in Neptuni
Old 03-31-2015 , 14:05   Tag Mismatch problem, searching for help
Reply With Quote #1

hello there!
i try to make an ability which allows you to refill some of your health when a player dies
this is the code so far:
Code:
if(FF2_HasAbility(Boss, this_plugin_name, "health_gain"))
		{
			new healthonkill = FF2_GetAbilityArgument(Boss,this_plugin_name,"health_gain",1,0.0);
			if(healthonkill)
			{
				FF2_SetBossHealth(Boss, FF2_GetBossHealth(Boss) + healthonkill);
			}
		}
but on this line new healthonkill = FF2_GetAbilityArgument(Boss,this_plugin_name, "health_gain",1,0.0); i get the tag mismatch error, does anyone knows how to solve this?
__________________
Steam Profile: Click here
Youtube Channel (Gameplay): Click here
Youtube Channel (Music): Click here
Twitter: Click here

Last edited by M76030; 03-31-2015 at 14:05.
M76030 is offline
WildCard65
Veteran Member
Join Date: Aug 2013
Location: Canada
Old 03-31-2015 , 14:22   Re: Tag Mismatch problem, searching for help
Reply With Quote #2

Change 0.0 to just 0. The tag mismatch is on the default value you passed to GetAbilityArgument
__________________
WildCard65 is offline
M76030
Senior Member
Join Date: Mar 2014
Location: Demoknighting in Neptuni
Old 03-31-2015 , 14:26   Re: Tag Mismatch problem, searching for help
Reply With Quote #3

ok, its working now, thanks ^^
__________________
Steam Profile: Click here
Youtube Channel (Gameplay): Click here
Youtube Channel (Music): Click here
Twitter: Click here
M76030 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 15:58.


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