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
"if" help ( again -_-'' )
tonitoni1998 Offline
Member

Posts: 163
Threads: 54
Joined: Oct 2012
Reputation: 1
#1
"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");
    }
}

i always get error messages ( http://imgur.com/aW6BhjZ ) here. where is my problem? it doesnt look different in the wiki.

thanks

When you are looking for someone, to do the scripting for your Custom Story, ask me!
(This post was last modified: 02-20-2013, 07:15 PM by tonitoni1998.)
02-20-2013, 06:13 PM
Find


Messages In This Thread
"if" help ( again -_-'' ) - by tonitoni1998 - 02-20-2013, 06:13 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)