The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can't use my acid on web
Lizard Offline
Member

Posts: 174
Threads: 23
Joined: Jul 2012
Reputation: 5
#1
Can't use my acid on web

Hi guys.

I've used AddUseItemCallback many times before, with no errors, but this time it just wont work, and i can't really see why.
I keep getting "Cannot use item this way"

Im hoping that you guys would help me a little


void OnEnter()
{
AddUseItemCallback("", "glass_container_1", "acid_container_1", "giveacid", true);

AddUseItemCallback("", "glass_container_mix_done", "web_1", "burnweb", true);

}


void giveacid(string &in asItem, string &in asEntity)
{
RemoveItem("glass_container_1");
GiveItem("", "glass_container_mix_done", "glasscontainermixdone", "glass_container_mix_done.tga", 1);
}


void burnweb(string &in asItem, string &in asEntity)
{
SetPropHealth("web_1", 0);
}

I've also checked for name errors

I've also tryed, to change name of the container used in the burnweb function "glass_container_mix_done" to "glass_container_mix_done_1"

CURRENT PROJECT:
A Fathers Secret == Just started
(This post was last modified: 10-04-2012, 03:08 PM by Lizard.)
10-04-2012, 12:09 PM
Find


Messages In This Thread
Can't use my acid on web - by Lizard - 10-04-2012, 12:09 PM
RE: Can't use my acid on web - by Ongka - 10-04-2012, 12:32 PM
RE: Can't use my acid on web - by Lizard - 10-04-2012, 12:41 PM
RE: Can't use my acid on web - by Ongka - 10-04-2012, 01:14 PM
RE: Can't use my acid on web - by Lizard - 10-04-2012, 01:40 PM
RE: Can't use my acid on web - by The chaser - 10-04-2012, 01:49 PM
RE: Can't use my acid on web - by Lizard - 10-04-2012, 01:51 PM
RE: Can't use my acid on web - by Your Computer - 10-04-2012, 02:03 PM
RE: Can't use my acid on web - by Lizard - 10-04-2012, 02:10 PM
RE: Can't use my acid on web - by Your Computer - 10-04-2012, 02:15 PM
RE: Can't use my acid on web - by Lizard - 10-04-2012, 02:18 PM
RE: Can't use my acid on web - by Your Computer - 10-04-2012, 02:40 PM
RE: Can't use my acid on web - by Lizard - 10-04-2012, 02:43 PM
RE: Can't use my acid on web - by Your Computer - 10-04-2012, 02:56 PM
RE: Can't use my acid on web - by Lizard - 10-04-2012, 03:02 PM



Users browsing this thread: 1 Guest(s)