got a problem is thare away to meke ptokax writ the nick on a person if the text is from a txt file
sure there is ..
Nightlitch used smth like
gsub(text, strfind(text, ("regexp_for_string_to_find")), user.sName)
in his Advanced MOTD script ..
whare shall i write it???
what is your text file like ?
A
< * > *
* /.-.\ * * *
* /&\ *
,@.*;@, * * *
/_o.I \ *
/ ;--. ,__ ') * * * *
;@ o O,* ' &\
* ( '--)_@ ;o ()\ * * Merry Christmas
/ ;--._ ''--._O'@; and a happy new year *
/&*,() o ;-.,_ "" ) to all on SVCD *
/ ,@ ;+& () o* ;-';\
( ""--.,_0 +@' &()\ *
/-.,_ ''--....-' ) * *
* /@o :;'--,.__ __.'\ *
;*,&(); @ &^; " o;@(); * *
/(); o^ ; & ().o@*& ;&\ *
"="==""==,,,.,="=="==="
__.----.(\-''#####---...___...-----
like this
to start with,.. ascii art text isnt the best thing to match a regular expression ... it was too many characters you will need so that you can signal what text is to be replaced ...
Anyway this is the principle to follow...
consider this string :
str = "Mery Christmas [user]"
If I want to replace "[user]" with my nick "Herodes" I would need to do this :
str = gsub( str, strfind(str, "%[user%]", "Herodes" )
now the variable str will return :
str = "Merry Christmas Herodes"
this has to be put in a .lua file right?
what that all shouldlook like? i do not understand at all.
I just need to get the nick from a user when he is writing the CMD for the *.txt file
like this
going to the toilet
going to the toilet
just like that i need the CMD to put in the TXT file