Convert int to String
-
How can i convert int to string?
thanks -
Did you try
"" + int_variable
? -
Thanks it works
How can i read kills from a file?
-
Major_Tom maybe with something like this but I cannot help you with this I'm not familiar with working with files on Plutonium
https://github.com/fedddddd/t6-gsc-utils#io -
Possible example?
write works but load not workingload()
{
guid = self getGuid();
basePath = getDvar("fs_basegame") + "/test/" + guid + ".txt";if(fileexists(basePath)) { file = fopen(basePath, "r"); fread(file, "" + self.pers["kills"] ); fclose(file); }
}
-
Major_Tom fread returns a string of the contents of the file. You aren't storing the string or printing it anywhere.