Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
READ THE
RULES
Home
Forum
Help
TinyPortal
Search
Login
Register
The PtokaX Portal
»
Forum
»
Client-based LUA scripting
»
Your Developing Problems
»
get tag from $MyINFO string
determinate
determinate
determinate
determinate
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: get tag from $MyINFO string (Read 98 times)
0 Members and 1 Guest are viewing this topic.
Hamachi
Forum Ace
Posts: 77
Karma: +0/-6
get tag from $MyINFO string
«
on:
October 31, 2011, 11:08:06 pm »
myinfo = "$MyINFO $ALL Hamachi <((((!))))><++ V:0.782,M:A,H:0/0/3,S:1>$ $0.005$$0$"
local _,_,tag = string.find(myinfo,"(%b<>)[^ ]+")
I like to get:
<++ V:0.782,M:A,H:0/0/3,S:1>
But get:
<(((())))>
Hope some like to help, Thanks
Logged
Mutor
Global Moderator
Forum God
Posts: 3 854
Karma: +395/-18
To err is human, to arr is pirate...
Re: get tag from $MyINFO string
«
Reply #1 on:
October 31, 2011, 11:46:03 pm »
Code:
[Select]
local _,_,tag = myinfo:find("(%b<>)%$")
You know if this is script for PtokaX you can pull the
sTag
from the user object.
Logged
Respectfully,
Mutor
=-=-=-=-=-=-=-==-=-=-=
[
Ptokax Admins Hub
] Ptokax Help Hub
[
Mutor's Ptokax Archive Website
] Scripting Forum
[
Dynamic Downloads
] API 2
[
Microsoft IIS serving PxWeb 1.0d
] API 2
[
WebReg 1.1.2.0
] Web Based Hub Reg
Hamachi
Forum Ace
Posts: 77
Karma: +0/-6
Re: get tag from $MyINFO string
«
Reply #2 on:
November 01, 2011, 08:24:24 am »
Thanks Mutor
It for client site, maybe bad Topic.
Logged
PPK
Administrator
Emperor
Posts: 1 245
Karma: +206/-17
PtokaX "developer"
Re: get tag from $MyINFO string
«
Reply #3 on:
November 01, 2011, 02:48:31 pm »
Bad part of board
Now it is in correct one
Logged
Hamachi
Forum Ace
Posts: 77
Karma: +0/-6
Re: get tag from $MyINFO string
«
Reply #4 on:
November 01, 2011, 10:02:30 pm »
Thanks PPK
«
Last Edit: November 01, 2011, 10:04:26 pm by Hamachi
»
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
The PtokaX Portal
»
Forum
»
Client-based LUA scripting
»
Your Developing Problems
»
get tag from $MyINFO string
determinate
determinate
determinate
determinate
guestbook