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
Expected Identifier error
Badstormer Offline
Junior Member

Posts: 5
Threads: 1
Joined: Jun 2015
Reputation: 0
#7
RE: Expected Identifier error

Here are the lines and their functions.

Spoiler below!

void 02health(string &in asTimer)
{
if(HasItem("health1")==true)
{
AddTimer("02healthtimer1", 2.5f, "02health");
}
else
{
SetGlobalVarInt("02-1", 0);
RemoveTimer("imagetrail");
RemoveTimer("venom");
FadeRadialBlurTo(0, 20);
FadeImageTrailTo(0, 30);
if(GetGlobalVarInt("venommessage02") == 0)
{
SetMessage("Messages", "venommessage02", 5);
SetGlobalVarInt("venommessage02", 1);
}
}
}

void 03health1(string &in asEntity, string &in type)
{
if(HasItem("health2")==true)
{
SetGlobalVarInt("03-1", 1);
AddTimer("03health1", 2.5f, "03health1");
}
else
{
SetGlobalVarInt("03-1", 0);
RemoveTimer("imagetrail");
RemoveTimer("venom");
FadeRadialBlurTo(0, 20);
FadeImageTrailTo(0, 30);
if(GetGlobalVarInt("venommessage02") == 0)
{
SetMessage("Messages", "venommessage02", 5);
SetGlobalVarInt("venommessage02", 1);
}
}
}

void 03health2(string &in asEntity, string &in type)
{
if(HasItem("health3")==true)
{
SetGlobalVarInt("03-2", 1);
AddTimer("03health2", 2.5f, "03health2");
}
else
{
SetGlobalVarInt("03-2", 0);
RemoveTimer("imagetrail");
RemoveTimer("venom");
FadeRadialBlurTo(0, 20);
FadeImageTrailTo(0, 30);
if(GetGlobalVarInt("venommessage02") == 0)
{
SetMessage("Messages", "venommessage02", 5);
SetGlobalVarInt("venommessage02", 1);
}
}
}


I modified the code a bit to experiment with any potential solutions, and unsurprisingly, the error persisted. If the code seems different, that is why.
(This post was last modified: 06-02-2015, 11:57 PM by Badstormer.)
06-02-2015, 11:54 PM
Find


Messages In This Thread
Expected Identifier error - by Badstormer - 06-02-2015, 08:11 PM
RE: Expected Identifier error - by A.M Team - 06-02-2015, 08:17 PM
RE: Expected Identifier error - by Badstormer - 06-02-2015, 08:20 PM
RE: Expected Identifier error - by Badstormer - 06-02-2015, 10:33 PM
RE: Expected Identifier error - by Badstormer - 06-02-2015, 11:54 PM
RE: Expected Identifier error - by Badstormer - 06-03-2015, 04:23 AM



Users browsing this thread: 1 Guest(s)