+ Reply to Thread
Results 1 to 4 of 4

Thread: Strings

  1. #1
    Wire Noob kklouzal's Avatar
    Join Date
    Apr 2008
    Posts
    4

    Cool Strings

    How would i make it possible for my entity to have string inputs and outputs, ive already gotten regular wire ones but now there is the need to have strings for a few more ;]

    thanks =]

  2. #2
    Wirererer Free Fall's Avatar
    Join Date
    Dec 2007
    Location
    Got digitalized and now lives in his PC's RAM
    Posts
    349

    Default Re: Strings

    You'll need the use of the "WireLib.CreateSpecialOutputs" or "WireLib.CreateSpecialInputs "command.

    Example:
    Code:
    self.Outputs = WireLib.CreateSpecialOutputs(self.Entity,{"A"},{"STRING"})
    but the way "ENT:TriggerInput" works doesn't change
    Needz moar Lua

  3. #3
    Wire Noob kklouzal's Avatar
    Join Date
    Apr 2008
    Posts
    4

    Default Re: Strings

    Code:
    self.Inputs = Wire_CreateSpecialInputs(self.Entity,{"useable","Price","[STRING] Item1","[STRING] Item2"},{"NORMAL","NORMAL","STRING","STRING"})
    Thats what i have and it makes it so there are no inputs..

  4. #4
    Wirererer Free Fall's Avatar
    Join Date
    Dec 2007
    Location
    Got digitalized and now lives in his PC's RAM
    Posts
    349

    Default Re: Strings

    Quote Originally Posted by kklouzal View Post
    Code:
    self.Inputs = Wire_CreateSpecialInputs(self.Entity,{"useable","Price","[STRING] Item1","[STRING] Item2"},{"NORMAL","NORMAL","STRING","STRING"})
    Thats what i have and it makes it so there are no inputs..
    Are you getting any error or something? Normaly you should, because the command "Wire_CreateSpecialInputs" doesn't seem to exists in the wirelib.

    So, as I said, use "WireLib.CreateSpecialInputs" or "WireLib.CreateSpecialOutputs"
    Needz moar Lua

+ Reply to Thread

Similar Threads

  1. Reading Strings from the Console Screen
    By Eirath245 in forum CPU, GPU, and Hi-speed Discussion & Help
    Replies: 10
    Last Post: 01-01-2009, 06:16 AM
  2. Strings and E-gate inputs, possible?
    By Rythyrix in forum Installation and Malfunctions Support
    Replies: 1
    Last Post: 09-17-2008, 12:00 AM
  3. Reading and saving strings
    By brwarner2 in forum CPU, GPU, and Hi-speed Discussion & Help
    Replies: 15
    Last Post: 02-10-2008, 05:54 PM
  4. strings in the ex gate
    By nanotech fur in forum Installation and Malfunctions Support
    Replies: 5
    Last Post: 10-19-2007, 12:28 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
proceed-collector
proceed-collector
proceed-collector
proceed-collector
linguistic-parrots
linguistic-parrots
linguistic-parrots
linguistic-parrots