For direct access use https://forums.oldunreal.com
It's been quite a while since oldunreal had an overhaul, but we are moving to another server which require some updates and changes. The biggest change is the migration of our old reliable YaBB forum to phpBB. This system expects you to login with your username and old password known from YaBB.
If you experience any problems there is also the usual "password forgotten" function. Don't forget to clear your browser cache!
If you have any further concerns feel free to contact me: Smirftsch@oldunreal.com

GetConOpts

The section related to UnrealScript and modding. This board is for coders to discuss and exchange experiences or ask questions.
User avatar
Age
OldUnreal Member
Posts: 848
Joined: Sat Dec 29, 2007 5:25 pm

GetConOpts

Post by Age »

Code: Select all

pname[i]=level.getconopts(na);
pname[i]=Right(pname[i],InStr(pname[i], "?Name="));
How to make this so that it (pname) return only the player name?
Somehow this returns it's skin.
Last edited by Age on Thu Oct 30, 2008 1:31 pm, edited 1 time in total.
User avatar
Chaos13
OldUnreal Member
Posts: 951
Joined: Sat Feb 16, 2008 10:24 am

Re: GetConOpts

Post by Chaos13 »

Code: Select all

pname[i]=Right(pname[i],InStr(pname[i], "?Name="));
Right? xD
Wtf kind of code is that?
Last edited by Chaos13 on Thu Oct 30, 2008 2:05 pm, edited 1 time in total.
Skydev = Chaos13 = Dimension4
User avatar
Age
OldUnreal Member
Posts: 848
Joined: Sat Dec 29, 2007 5:25 pm

Re: GetConOpts

Post by Age »

How to get only name in GetConOpts?
Because it return index?password=453?class=unreali.male1?name=Player ...
Something InStr, Right, Left i guess.
EDIT: got it working in way: pname=Mid(pname,InStr(pname,"Name="),InStr(pname,"?"));
But it look like: "Name=Player?"
Last edited by Age on Sun Nov 02, 2008 3:11 pm, edited 1 time in total.

Return to “UScript Board”