Thread: loadlines
View Single Post
  #1  
Old 12-10-2006, 11:28 PM
coreys coreys is offline
N-Pulse Assistant Manager
coreys's Avatar
Join Date: Mar 2005
Posts: 2,180
coreys has a spectacular aura about
Send a message via AIM to coreys Send a message via MSN to coreys Send a message via Yahoo to coreys
loadlines

I'm trying to use loadlines to make a kind of web browser for txt files in the folder "levels/sites/account_pagename.txt"

I don't really know quite what I'm doing though, and this is just returning 0:
PHP Code:
function onActionServerSide() {
  if (
params[0] == "loadpage") {
    
findPlayer(params[1]);
    
a.client.browserview.loadLines("sites/"@params[1]@"_"@params[2]@".txt");
    
sendtorc("Testing browser: "@a.clientr.browserview);
  }

For testing purposes, params[1] is the account and params[2] is mainweb. So it should be looking up "levels/sites/coreys_mainweb.txt" which does exist. It is:
NPC Code:
<center><h1>Vash-Aniki</h1></center>



I've tried both levels/sites/ and just sites/. Neither have worked.
__________________

Quote:
*SlikRick: so should I even ask about your aim status?
*Xor: well if you want to
*Xor: but i am LARPING
*SlikRick: While on a computer?
*Xor: yes
*Xor: in my living room
*SlikRick: ahh
*Xor: i have a fort setup to hide from beasts
Reply With Quote