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
Unexpected end of file help
ingedoom Offline
Member

Posts: 120
Threads: 12
Joined: Feb 2012
Reputation: 0
#7
RE: Unexpected end of file help

(03-15-2013, 08:57 PM)killerblade Wrote:
PHP Code: (Select All)
if(asTimer == "1")
{
 
SetPlayerActive(true);
    }
    else if(
asTimer == "2")
{
 
SetPlayerActive(false);
    }
    else if(
asTimer == "3")
{
ChangeMap("Mohammadsmap.map""flashingreturn""""");
StartPlayerLookAt("LookatReturn"12.0f"");


I'm quite sure you don't have to put "" around your integers. Just remove those.

PHP Code: (Select All)
if(asTimer == 1)
{
 
SetPlayerActive(true);
    }
    else if(
asTimer == 2)
{
 
SetPlayerActive(false);
    }
    else if(
asTimer == 3)
{
ChangeMap("Mohammadsmap.map""flashingreturn""""");
StartPlayerLookAt("LookatReturn"12.0f"");


"" is only for string values. Strings are text like: "grunt_1"

I think you will find this article helpful.

[Image: 23778.png]
(This post was last modified: 03-15-2013, 09:37 PM by ingedoom.)
03-15-2013, 09:30 PM
Website Find


Messages In This Thread
Unexpected end of file help - by killerblade - 03-15-2013, 10:26 AM
RE: Unexpected end of file help - by Adrianis - 03-15-2013, 10:36 AM
RE: Unexpected end of file help - by killerblade - 03-15-2013, 11:31 AM
RE: Unexpected end of file help - by Adrianis - 03-15-2013, 12:25 PM
RE: Unexpected end of file help - by ingedoom - 03-15-2013, 01:54 PM
RE: Unexpected end of file help - by killerblade - 03-15-2013, 08:57 PM
RE: Unexpected end of file help - by ingedoom - 03-15-2013, 09:30 PM
RE: Unexpected end of file help - by killerblade - 03-15-2013, 10:49 PM
RE: Unexpected end of file help - by ingedoom - 03-15-2013, 11:16 PM
RE: Unexpected end of file help - by Adrianis - 03-15-2013, 11:08 PM
RE: Unexpected end of file help - by Adrianis - 03-15-2013, 11:23 PM



Users browsing this thread: 1 Guest(s)