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
Script Help Newbie problems that are driving me crazy!
Vic7im Offline
Junior Member

Posts: 44
Threads: 9
Joined: Sep 2012
Reputation: 3
#8
RE: Newbie problems that are driving me crazy!

(09-21-2012, 03:50 PM)Nemet Robert Wrote: I think the problem is here:
(09-21-2012, 03:45 PM)Vic7im Wrote: if(GetLocalVarInt("MessageSet") != 1)
Is that ! supposed to be there?

Also, the reason it may not work is because you are telling the game that IF LocalVarInt named "MessageSet" is 1, it should trigger that message.

But it looks like you want to set it to 1 after checking if the LocalVarInt is 1, which is technically not possible. That is what I get out of it. Try removing that "GetLocalVarInt" script function. If that fixes it, you're heading the right way.

I saw that on another script, the process is: if it isn't equal to 1, then display the message and set the value to 1 (so that if you do that again, it won't display the message because the value is set to 1) But, even if I remove that part the script won't work. I have no clue what's causing this. I'll place an "area" there with a collidecallback function, let's hope that works.
(This post was last modified: 09-21-2012, 05:46 PM by Vic7im.)
09-21-2012, 05:44 PM
Find


Messages In This Thread
RE: Newbie problems that are driving me crazy! - by Vic7im - 09-21-2012, 05:44 PM



Users browsing this thread: 1 Guest(s)