|
Post by NicusorN5 on Dec 20, 2015 11:38:09 GMT
This script don't returns the file data . int Handle; string PlayerName =""; void Main() { Handle = iFileReadOpen(".\\Username.CWGS"); if (Handle != -1) { iFileStringWrite(Handle,PlayerName,false); iFileClose(Handle); } iObjectTextSet(OBJ_0,PlayerName); }
OBJ_0 is textprint
|
|
|
Post by n_iron on Dec 22, 2015 7:39:39 GMT
Hi N5 If you want to read a file you will need the command below.
It is good to see you are having a try but you must before you ask press the HELP button in the Script object. There is a lot to learn but keep on with it and you will become a master.
n_iron
iFileStringRead(int,string) Read the next string from the specified file. int = file handle returned by iFileReadOpen() or iFileWriteOpen() string = string to place the read text into.
|
|
|
Post by NicusorN5 on Dec 22, 2015 9:50:01 GMT
|
|