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


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help Combinating problems
Rapture Offline
Posting Freak

Posts: 1,078
Threads: 79
Joined: May 2011
Reputation: 30
#4
RE: Combinating problems

Change the last two "if"s to "else".

//COMBINE EXPLOSIVE CHEMICALS////
void make_explosive(string &in asItemA, string &in asItemB)
{
  if (GetLocalVarInt("chemical_dynamite") == 0)
  {
   GiveItem("chemical_container_half", "Puzzle", "chemical_container_half", "chemical_container_half.tga", 1);
   AddLocalVarInt("chemical_dynamite", 1);
   RemoveItem(asItemA); RemoveItem(asItemB);
   RemoveCombineCallback("Add_var_explosive");
  }
  else (GetLocalVarInt("chemical_dynamite") == 1)
  {
   RemoveCombineCallback("Add_var_explosive_1");
   AddLocalVarInt("chemical_dynamite", 1);
  }
  else (GetLocalVarInt("chemical_dynamite") == 2)
  {
   RemoveCombineCallback("Add_var_explosive_2");
   AddLocalVarInt("chemical_dynamite", 1);
  }
}
08-02-2013, 03:38 PM
Find


Messages In This Thread
Combinating problems - by The chaser - 08-02-2013, 01:15 PM
RE: Combinating problems - by PutraenusAlivius - 08-02-2013, 01:31 PM
RE: Combinating problems - by The chaser - 08-02-2013, 03:19 PM
RE: Combinating problems - by Rapture - 08-02-2013, 03:38 PM
RE: Combinating problems - by The chaser - 08-02-2013, 04:21 PM
RE: Combinating problems - by Tomato Cat - 08-02-2013, 06:43 PM
RE: Combinating problems - by Rapture - 08-02-2013, 10:45 PM
RE: Combinating problems - by SilentStriker - 08-03-2013, 09:45 PM
RE: Combinating problems - by Rapture - 08-03-2013, 10:44 PM
RE: Combinating problems - by SilentStriker - 08-04-2013, 01:33 AM
RE: Combinating problems - by The chaser - 08-04-2013, 10:56 AM



Users browsing this thread: 1 Guest(s)