Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 01-18-2006, 11:57 PM
Andy0687 Andy0687 is offline
Enigma
Join Date: Feb 2002
Posts: 1,072
Andy0687 is on a distinguished road
savelines

Having trouble with savelines and the only thing I found from forum search is one thread that didnt quite explain it (Although i tried to user similar style).

Anyways I am trying to write to a file on the server, and when it creates the file it creates it as an empty file, and later nothing is added either.

I have tried it both clientside and serverside and the file created is 0kb

I have done it from the onCreated and onActionserverside.

Not so sure if this is a bug or If I am doing something wrong.

NPC Code:

function onActionServerside() {
if (params[0] == 0) {
write = params[1];
write.savelines("test.txt", 0);
}
}
//#CLIENTSIDE
function onplayerchats() {
test = player.chat;
triggeraction(playerx, playery, "serverside", "James/Test", 0, test);
}

Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 05:46 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.