View Single Post
  #1  
Old 01-21-2007, 05:36 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
Quote:
Originally Posted by xXziroXx View Post
I encountered a problem when trying to read a file with loadLines.. or well, the same thing worked one day earlier and I havent touched it.


Heres how the file looks like:

PHP Code:
"White Pants",1,Pants,White,0,0,
 Sacks
,1,Sacks,0,0,0,
and its named xXziroXx_items.arc. Here's how I try to read it, along with what it returns:

PHP Code:
temp.items.loadLines(temp.folder player.account "_items.arc");

temp.items echoes:

Sacks,"White Pants" 

I asked Skyld about it, and he did not know what could be wrong. I tried restarting the NPC-Server and /refreshfilelist but none worked. He suggested I post it on the forum so that Stefan can see it.

Need help asap.
You could make the arc file look like:

PHP Code:
Item1="White Pants",1,Pants,White,0,0,
Item2
=Sacks,1,Sacks,0,0,0,
I dunno if it is that you are trying to do, but if it was like that, you could use loadvars
__________________
Reply With Quote