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
"if" help ( again -_-'' )
OriginalUsername Offline
Posting Freak

Posts: 896
Threads: 42
Joined: Feb 2013
Reputation: 34
#2
RE: "if" help ( again -_-'' )

void CompleteOilQuest(string &in asEntity)
{
    CompleteQuest("oil_quest", "Quest_OilQuest_Text");
    
    if(GetPlayerLampOil == 0f)
{
    SetMessage("map2_messages", "QuestOilDone1");
}
else
{
    
    if(GetPlayerLampOil > 0f && (GetPlayerLampOil) <= 5f)
{
SetMessage("map2_messages", "QuestOilDone2");
}
else
{
        if(GetPlayerLampOil > 5f && (GetPlayerLampOil) < 12.5f)
    {
    SetMessage("map2_messages", "QuestOilDone3");
    }
    else
    {
if(GetPlayerLampOil == 12.5f)
    {
        SetMessage("map2_messages", "QuestOilDone4");
    }
}}}}

That should do it. I'm not sure though
02-20-2013, 06:39 PM
Find


Messages In This Thread
"if" help ( again -_-'' ) - by tonitoni1998 - 02-20-2013, 06:13 PM
RE: "if" help ( again -_-'' ) - by OriginalUsername - 02-20-2013, 06:39 PM
RE: "if" help ( again -_-'' ) - by tonitoni1998 - 02-20-2013, 06:57 PM
RE: "if" help ( again -_-'' ) - by Adrianis - 02-20-2013, 06:57 PM
RE: "if" help ( again -_-'' ) - by tonitoni1998 - 02-20-2013, 07:09 PM
RE: "if" help ( again -_-'' ) - by MulleDK19 - 02-20-2013, 11:20 PM
RE: "if" help ( again -_-'' ) - by NaxEla - 02-21-2013, 12:49 AM
RE: "if" help ( again -_-'' ) - by tonitoni1998 - 02-21-2013, 05:42 PM



Users browsing this thread: 1 Guest(s)