Archived copy of war3source.com, the War3Source forum (2009–2020), rebuilt from the Internet Archive by wc3mods.net. This page was captured on 2012-09-22 (original capture). Forum · All archived topics · Wiki · Bug tracker · Blog
Chat

War3:Source
September 21, 2012, 09:08:22 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Download: http://war3source.com/index.php?board=9.0
What is War3Source?: http://war3source.com/index.php?topic=200.0
Sample Stats: http://war3source.com/war3stats
Steam Community Group: http://steamcommunity.com/groups/war3source
War3Source SVN Checkout: http://ownageclan.com/svn/war3source/
War3Source servers: http://www.game-monitor.com/search.php?vars=war3_version=
 
   Home   Help Search Login Register  
Pages: 1 [2]
  Print  
Author Topic: Race Compile Error  (Read 696 times)
Grinlock
Newbie
*
Posts: 33


View Profile
« Reply #25 on: May 02, 2012, 05:43:33 PM »

I have also checked the w3s interface,
I press find, typed in "HealToHP", comes back "No results"
For at least the latest version this isn't a command from the w3s interface
Logged
Vulpone
Full Member
***
Posts: 140



View Profile Email
« Reply #26 on: May 03, 2012, 09:47:28 AM »

This sounds like some sort of joke l0l

No errors here with SetClientHealth (and you did NOT say you had tried it before.), no errors with the function revan describes either.

Here's a direct copy-pasted version of the natives defined within War3Source_Interface.inc (latest, fresh off of the SVN)

Code:
/**
 * heals with the limit of (warcraft ) max hp
 * @noreturn
 */ 
native War3_HealToMaxHP(client,addhp); 

/**
 * heals with the limit of your specified HP
 * @noreturn
 */ 
stock War3HealToHP(client,addhp,maximumHP){
new currenthp=GetClientHealth(client);
new newhp=currenthp+addhp;
if(newhp>maximumHP){
newhp=maximumHP;
}
SetEntityHealth(client,newhp)
}
/**
 * heals to max hp * 1.5 buff in tf2
 * no extra hp in other games
 * @noreturn
 */ 
native War3_HealToBuffHP(client,addhp); 
Logged

Sapere aude!
Revan
Sr. Member
****
Posts: 263



View Profile
« Reply #27 on: May 03, 2012, 10:00:18 AM »

the proper command to set it manually is SetEntityHealth
Logged

Grinlock
Newbie
*
Posts: 33


View Profile
« Reply #28 on: May 03, 2012, 08:21:10 PM »

This sounds like some sort of joke l0l

No errors here with SetClientHealth (and you did NOT say you had tried it before.), no errors with the function revan describes either.

Here's a direct copy-pasted version of the natives defined within War3Source_Interface.inc (latest, fresh off of the SVN)

Code:
/**
 * heals with the limit of (warcraft ) max hp
 * @noreturn
 */ 
native War3_HealToMaxHP(client,addhp); 

/**
 * heals with the limit of your specified HP
 * @noreturn
 */ 
stock War3HealToHP(client,addhp,maximumHP){
new currenthp=GetClientHealth(client);
new newhp=currenthp+addhp;
if(newhp>maximumHP){
newhp=maximumHP;
}
SetEntityHealth(client,newhp)
}
/**
 * heals to max hp * 1.5 buff in tf2
 * no extra hp in other games
 * @noreturn
 */ 
native War3_HealToBuffHP(client,addhp); 
Copy, paste & edit? I have the latest version, I get this
Quote
/**
 * heals with the limit of (warcraft ) max hp
 * @noreturn
 */ 
native War3_HealToMaxHP(client,addhp); 

/**
 * heals to max hp * 1.5 buff in tf2
 * no extra hp in other games
 * @noreturn
 */ 
native War3_HealToBuffHP(client,addhp);

Just fyi, I downloaded all the w3s/sourcemod only the day before I posted about this issue. Server doesn't even say I have an out of date version.
Latest off ownage clan site, War3SourceP1.2.3.6.rar the war3source_interface files doesn't have that command.
« Last Edit: May 03, 2012, 08:28:08 PM by Grinlock » Logged
Revan
Sr. Member
****
Posts: 263



View Profile
« Reply #29 on: May 03, 2012, 11:32:23 PM »

I thought you were using the SVN. you should realy consider doing that
Logged

Grinlock
Newbie
*
Posts: 33


View Profile
« Reply #30 on: May 04, 2012, 12:24:55 AM »

SVN, Where about do I get that one then?
http://www.ownageclan.com/wiki/index.php/Development:SVN  ?
« Last Edit: May 04, 2012, 01:00:38 AM by Grinlock » Logged
Grinlock
Newbie
*
Posts: 33


View Profile
« Reply #31 on: May 04, 2012, 01:30:07 AM »

Thank you so much, both of you.
I'm sorry I didn't realise there was a SVN Version. I Shouldn't have any more issues for now.

I truly do appreciate your efforts to help someone new to the war3source code. Much nicer then some other communities.
Logged
Vulpone
Full Member
***
Posts: 140



View Profile Email
« Reply #32 on: May 04, 2012, 12:15:06 PM »

Thank you so much, both of you.
I'm sorry I didn't realise there was a SVN Version. I Shouldn't have any more issues for now.

I truly do appreciate your efforts to help someone new to the war3source code. Much nicer then some other communities.

somehow feel like that was meant to be sarcastic D:

but one way or the other, good luck! glad we could be somewhat of a help
Logged

Sapere aude!
Grinlock
Newbie
*
Posts: 33


View Profile
« Reply #33 on: May 05, 2012, 08:39:39 AM »

Not being sarcastic, Just a well brought up fella.
Logged
Pages: 1 [2]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!