|
Sollie Villota
Registered User
Join date: 22 Jun 2007
Posts: 46
|
09-06-2007 14:08
I am looking around and I can't find anything about this.
My scoreboard needs to show the top 5 killers of the sim. To do this, it sends a call to my webhost and it uses a .php script to bring upt he list and send it back in this form:
[Name]- Kills: [kills] Deaths: [deaths]\n
So it will send "5 lines", but how do I get it so the script will take each one of those "lines" that end in '\n' and turn each one into five seperate strings: killer1, killer2, killer3, killer4, and killer5?
|
|
Jotheph Nemeth
Registered User
Join date: 9 Aug 2007
Posts: 142
|
09-06-2007 14:18
From: Sollie Villota I am looking around and I can't find anything about this.
My scoreboard needs to show the top 5 killers of the sim. To do this, it sends a call to my webhost and it uses a .php script to bring upt he list and send it back in this form:
[Name]- Kills: [kills] Deaths: [deaths]\n
So it will send "5 lines", but how do I get it so the script will take each one of those "lines" that end in '\n' and turn each one into five seperate strings: killer1, killer2, killer3, killer4, and killer5? http://www.lslwiki.net/lslwiki/wakka.php?wakka=llParseString2Listlist parse = llParseString2List(webstring, ["\n"], []); string string1 = llList2String(parse, 0); string string2 = llList2String(parse, 1); etc.
|
|
Sollie Villota
Registered User
Join date: 22 Jun 2007
Posts: 46
|
09-06-2007 14:34
ahh thank you much! works great.
|