Gamestudio Links
Zorro Links
Newest Posts
phantom() not defined in indicators.c
by AndrewAMD. 08/05/26 17:49
Pause button for evaluation shell?
by AndrewAMD. 08/05/26 13:42
Fun Arcade Car Physics (nfs style)
by Ezzett. 08/02/26 21:11
ZorroGPT
by TipmyPip. 07/31/26 22:56
Wolfram Mathematica with Zorro
by TipmyPip. 07/30/26 02:07
What are you working on?
by rayp. 07/24/26 22:58
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (Quad, AndrewAMD), 1,504 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
riggi89, shuhari, KD1990, Student_64151, Koti
19222 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
file_var_read doesnt function? #254386
03/02/09 22:04
03/02/09 22:04
Joined: Oct 2008
Posts: 112
N
Ness Offline OP
Member
Ness  Offline OP
Member
N

Joined: Oct 2008
Posts: 112
Welli tried the HELP of manual and here is the result:

Click to reveal..
var_nsave filehandle;
var zeitspeicher;

action test
{
player = me;

filehandle = file_open_write("myfile.txt");
file_var_write(filehandle,123);
file_close(filehandle);
filehandle = file_open_read("myfile.txt");
zeitspeicher = file_var_read(filehandle);
zeitspeicher = file_var_read(filehandle);
file_close(filehandle);

}

panel testnew
{
pos_x = 30;
pos_y = 30;
flags=refresh,visible,overlay,d3d;
digits(0,20,5,*,1,zeitspeicher);
}

function main()
{
level_load("testest.wmb");
}


I dont get any value zeitspeicher has everytime 0!
How do it can have zeitspeicher 123??

PS: Subquestion: How can i write string/integer in textfile like this:
test
test 2
...
...
I can do only this:
test test2 ... ...

greetings ness

Re: file_var_read doesnt function? [Re: Ness] #254434
03/03/09 12:45
03/03/09 12:45
Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Cowabanga Offline
Expert
Cowabanga  Offline
Expert

Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Originally Posted By: Ness
PS: Subquestion: How can i write string/integer in textfile like this:
test
test 2
...
...
I can do only this:
test test2 ... ...


Make it like this:

test/ntest2

And so on... smile


Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1