file_text_write_string(file_text_open_write("AchIE.txt",string(XORencyrpt("global.APi = 1")))Thanks,--pikachu123--
Edited by pikachu123, 03 April 2011 - 11:42 PM.
Posted 03 April 2011 - 04:23 PM
file_text_write_string(file_text_open_write("AchIE.txt",string(XORencyrpt("global.APi = 1")))Thanks,Edited by pikachu123, 03 April 2011 - 11:42 PM.
Posted 03 April 2011 - 05:04 PM
file=file_text_open_write("AchIE.txt")
file_text_write_string(file,string(XORencyrpt("global.APi = 1"))
Edited by ani12321, 03 April 2011 - 05:10 PM.
Posted 03 April 2011 - 05:42 PM
I tried that and i still got the smae error. Heres EXACTLY what i did.file_text_write_string(file_text_open_write("
AchIE.txt"),string(XORencyrpt("global.APi = 1"))
You forgot to close bracket in file_text_open_write
Code it's not working becouse you need to set file_text_open_write() in a variablefile=file_text_open_write("AchIE.txt") file_text_write_string(file,string(XORencyrpt("global.APi = 1"))
if (score >= global.APiS && global.APi = 0)
{
var _FILE;
_FILE = file_text_open_write("AchIE.txt")
XepyhrPoints += global.APiP
if global. APiA = 0 {
file_text_write_string(_FILE,string(XORencyrpt("global.APi = 1")))
alarm[0] = 100
APiA = 1
}
/*DRAWINGSTUFF |
}
there might be some typos becuase my game is on a different computer and it doesnt have internet
Edited by pikachu123, 03 April 2011 - 05:45 PM.
Posted 03 April 2011 - 07:46 PM
Posted 03 April 2011 - 10:52 PM
CREATE:
FILE = file_text_open_write("AchIE.txt")
FILER = file_text_open_read("AchIE.txt")
APiF = file_text_read_string("AchIE.txt")
APiFILE = string(XORencrypt(APiF))
DRAW:
if (score >= global.APiS && global.APi = 0) && (!APiFILE = "global.APi = 1")
{
BLABLABLA }
thanks again ani.
Edited by pikachu123, 03 April 2011 - 11:01 PM.
Posted 04 April 2011 - 12:32 PM
You can not open the same file for reading and writing. To fix this you need to close file and then open it again. So it will be like this:now im having problems with reading the text file
FILE = file_text_open_read("AchIE.txt")
APiF = file_text_read_string(FILE)//here you will write the id of file you have opened that is FILE
file_text_close(FILE)//close file
APiFILE = string(XORencrypt(APiF))
FILE = file_text_open_write("AchIE.txt")//Open it again for writing. Close it when you dont want anymore
Edited by ani12321, 04 April 2011 - 12:33 PM.
Posted 05 April 2011 - 01:02 AM
if (score >= global.APiS && global.APi = 0) && (!APiFILE = "global.APi = 1")
{
BLABLABLA
Edited by pikachu123, 05 April 2011 - 01:13 AM.
Posted 05 April 2011 - 01:04 AM
Posted 05 April 2011 - 05:33 AM
I tried that and it worked, but the draw event thing is having an error "wrong type if argument to unary operator"
if (score >= global.APiS && global.APi = 0) && (!APiFILE = "global.APi = 1") { BLABLABLA
Posted 05 April 2011 - 05:34 AM
Edited by ani12321, 05 April 2011 - 05:34 AM.
0 members, 0 guests, 0 anonymous users