Team Spartan Cookies & Milk Forums
  • Issue Tracker
  • Donations
  • Search
  • Member List
  • Help

Register

Team Spartan Cookies & Milk Forums Garry's Mod Starfall v
« Previous 1 … 13 14 15 16 17 18 Next »
LocInt's SF Help & Request Thread
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Linear Mode
LocInt's SF Help & Request Thread
14-05-2015, 05:29 PM,
#12
SuperPlayer Offline
TSCM Super Member
****
Posts: 234
Threads: 30
Joined: Oct 2014
RE: LocInt's SF Help & Request Thread
Hey. I stuck at this function since a while and i need help. The function i have right now just works for An inbound address of 7 chevrons. So my question is can i somehow split the Address so that I only get the first 6 characters?

So for the function lets assume Address = "123456@P#"
So how can i make that it deletes the last 3 characters?
But also so that it would for Address = "123456#"?

function findStargateByAddress(Address)
Stargates = find.byClass("stargate_*")
for I=1, #Stargates do
Stargate = Stargates[I]
if (stargate.address( Stargate ) == string.gsub(Address,"#","")) then
return Stargate
end
end
end

I hope you can help me out.
Find
Reply
« Next Oldest | Next Newest »


Messages In This Thread
LocInt's SF Help & Request Thread - by LocInt - 11-12-2014, 05:55 PM
RE: LocInt's SF Help & Request Thread - by Wirebuilder28 - 11-12-2014, 06:13 PM
RE: LocInt's SF Help & Request Thread - by LocInt - 11-12-2014, 06:41 PM
RE: LocInt's SF Help & Request Thread - by Person8880 - 11-12-2014, 07:21 PM
RE: LocInt's SF Help & Request Thread - by LocInt - 11-12-2014, 07:34 PM
RE: LocInt's SF Help & Request Thread - by Person8880 - 11-12-2014, 07:40 PM
RE: LocInt's SF Help & Request Thread - by LocInt - 11-12-2014, 07:41 PM
RE: LocInt's SF Help & Request Thread - by TheOneAndOnlyTee - 11-12-2014, 09:01 PM
RE: LocInt's SF Help & Request Thread - by Blackhawk - 11-12-2014, 11:28 PM
RE: LocInt's SF Help & Request Thread - by LocInt - 11-12-2014, 11:41 PM
RE: LocInt's SF Help & Request Thread - by Person8880 - 12-12-2014, 06:47 PM
RE: LocInt's SF Help & Request Thread - by SuperPlayer - 14-05-2015, 05:29 PM
RE: LocInt's SF Help & Request Thread - by LocInt - 14-05-2015, 06:04 PM
RE: LocInt's SF Help & Request Thread - by Person8880 - 14-05-2015, 06:06 PM
RE: LocInt's SF Help & Request Thread - by SuperPlayer - 14-05-2015, 06:24 PM
RE: LocInt's SF Help & Request Thread - by Salira - 16-05-2015, 05:46 PM

  • View a Printable Version
Forum Jump:


Users browsing this thread:
Contact UsTeam Spartan Cookies & MilkReturn to TopLite (Archive) ModeMark all forums readRSS Syndication

Powered By MyBB, © 2002-2026 MyBB Group.