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); }}
-
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.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login