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:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Variable help needed PLEASE :'(
X4anco Offline
Member

Posts: 157
Threads: 66
Joined: Apr 2011
Reputation: 0
#1
Bug  Variable help needed PLEASE :'(

Hello ,

I need help with a script -to do with variables, Ive never used them
before- and when the player interacts with a lever nothing happens when I want a message when door = 0 but nothing happens, I hope you can help Big Grin
//VARAIBLES
    AddLocalVarInt("door1", 0);
    //FUNCTIONS
    SetEntityPlayerInteractCallback("lever1", "used1", false);
void used1(string &in asParent, string &in asChild, int alState)
{
     if(GetGlobalVarInt("door1")==1)
    {
    SetSwingDoorLocked("metal_1", false, true);
    PlaySoundAtEntity("", "unlock_door", "metal_1", 0, false);
    }
    else
    {
     PlayGuiSound("21/21_lever_fail.ogg", 1);
     SetMessage("Message", "mem8", 3);
     }
}

...
(This post was last modified: 05-21-2011, 09:39 PM by X4anco.)
05-21-2011, 08:58 PM
Find


Messages In This Thread
Variable help needed PLEASE :'( - by X4anco - 05-21-2011, 08:58 PM
RE: Variable help needed PLEASE :'( - by X4anco - 05-21-2011, 10:03 PM
RE: Variable help needed PLEASE :'( - by Kyle - 05-21-2011, 10:07 PM
RE: Variable help needed PLEASE :'( - by X4anco - 05-21-2011, 10:19 PM
RE: Variable help needed PLEASE :'( - by Kyle - 05-22-2011, 12:31 AM



Users browsing this thread: 1 Guest(s)