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 statement error
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#1
If statement error

My if-statement makes a strange error i cannot seem to solve.

What i want is (as to many others) for my door to display a message when it is locked.

I was going to test it out when this showed up:

FATAL ERROR: Could not load script file
'custom _stories/OE/custom_stories/OE/maps/D-Dur.hps'!
main(22, 11) : ERR :Expected ';'
main(30, 11) : ERR :Expected ';'


My script looks like this:


void OnStart()
{

SetEntityPlayerInteractCallback("V17_door", "V17_door", false);
SetEntityPlayerInteractCallback("V18_door", "V18_door", false);
}


18 void V17_door(string &in asEntity)
19 {
20 if(GetSwingDoorLocked("V17"))
21 {
22 SetMessage"Messages", "V17", 0); <- Look it is there!!
23 }
24 }
25

26 void V18_door(string &in asEntity)
27 {
28 if(GetSwingDoorLocked("V18"))
29 {
30 SetMessage"Messages", "V18", 0); <- It is also here!!
31 }
32 }

What is wrong here??


EDIT: And my message is here:

////////////////////////////MESSAGES

<CATEGORY Name="Messages">
<Entry Name="V17">Doeren er laast</Entry>
<Entry Name="V18">Doeren er laast</Entry>

</CATEGORY>

Trying is the first step to success.
(This post was last modified: 03-31-2012, 11:14 AM by FlawlessHappiness.)
03-31-2012, 11:12 AM
Find


Messages In This Thread
If statement error - by FlawlessHappiness - 03-31-2012, 11:12 AM
RE: If statement error - by SilentStriker - 03-31-2012, 11:24 AM
RE: If statement error - by Linus Ågren - 03-31-2012, 11:25 AM
RE: If statement error - by FlawlessHappiness - 03-31-2012, 11:51 AM
RE: If statement error - by SilentStriker - 03-31-2012, 11:58 AM



Users browsing this thread: 1 Guest(s)