Jump to content
McKay Development

client.gamesplayed


hexo

Recommended Posts

Hi, how do I set that I'm playing a custom game in my profile. I tried placing the string first but still goes online and shows as playing a game with the first integer in my array

 

client.gamesPlayed(["some string here", 730, 440, ..., ....]);

 

edit: I made it work by via this:

 

let x = "some string here";

let y = x.toString();

client.gamesPlayed([y, 730, 440, ..., ....]);

Edited by hexo
Link to comment
Share on other sites

If you want a custom game, make a string as the first entry in your games array that you pass to gamesPlayed.

 

Examples:

client.gamesPlayed('My Custom Game', 440 ,730);

or

var games = ['My Custom Game', 440 ,730];

client.gamesPlayed(games);

It looks cleaner in my opinion.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...