Jump to content
McKay Development

Recommended Posts

Posted

whats wrong , i am running it through list of steamids.

Here is my code:-

function checkVacID(){

    friend_list = friends;

    friend_list.forEach(function(key, index){ 
        community.getSteamUser(key, (err, user) => {
                if(err) { 
                    console.log("there was an problem to get the steam user!"+err) 
                    return; 
                }
                else
                {
                    if(user.vacBanned == true)
                    {
                        console.log(`${user.name} VAC Banned Profile`);  
                    }
                }
            });
    });
}

 

Posted (edited)

Its flooding with error in console

 

there was an problem to get the steam user!
there was an problem to get the steam user!
there was an problem to get the steam user!
there was an problem to get the steam user!
there was an problem to get the steam user!
there was an problem to get the steam user!



Edit: when i print err it shows this
 

Error: The specified profile could not be found.

 

Edited by harsh
update
Posted
5 hours ago, Dr. McKay said:

Sounds like you aren't providing valid SteamIDs.

No steam IDs list are fine I tested by printing.

If I test with single steam id it works but not in loop.

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...