Jump to content

Recommended Posts

14 minutes ago, Droidz said:

Hello, where is your list<string>? and you want use it is quest type (overidepulsecsharpcode)?

how to save this list so all my bots can see it? 

      //For example:
        string myNameIs = ObjectManager.Me.Name;
        List<string> nameOtherPlayer = new List<string>(){};
        if (myNameIs == "Putin")
        {
            nameOtherPlayer.Add("Trump");
        }
        //save the list in order to another chars can use the list

        //OR
        string myNameIs = ObjectManager.Me.Name;
        List<string> nameAllMyBots = new List<string>(){};
        if (!nameAllMyBots.Contains(myNameIs))
        {
            nameAllMyBots.Add(myNameIs);
        }

quest type (overidepulsecsharpcode)? - yes.

Link to comment
https://wrobot.eu/forums/topic/10927-save-list-name-player/#findComment-52022
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...