error CS1041: Identifier expected
I copied this code from https://www.parse.com/docs/unity/guide#fbusers and unity console tell me 'Assets/Test.cs(5,26): error CS1041: Identifier expected '
using UnityEngine;
using System.Collections;
using Parse;
using System.Threading.Tasks;
using System.Collections.*;
using System;public class Test : MonoBehaviour {
// Use this for initialization
void Start () {
int number = 42;
string str = "the number is " + number;
DateTime date = DateTime.Now;
byte[] data = System.Text.Encoding.UTF8.GetBytes("playerName");
IList<object> list = new List<object> { str, number };
IDictionary<string, object> dictionary = new Dictionary<string, object>
{
{ "number", number },
{ "string", str }
};
var bigObject = new ParseObject("BigObject");
bigObject["myNumber"] = number;
bigObject["myString"] = str;
bigObject["myDate"] = date;
bigObject["myData"] = data;
bigObject["myList"] = list;
bigObject["myDictionary"] = dictionary;
Task saveTask = bigObject.SaveAsync();
}
// Update is called once per frame
void Update () {
}
}
Comment
Best Answer
Answer by mgsein · Nov 12, 2015 at 04:27 AM
Replace
using System.Collections.*;
with
using System.Collections.Generic;
using System.Collections.Specialized;
Your answer
Follow this Question
Related Questions
How do I create an array for sounds? 1 Answer
Error CS0118: Armor.DisplayName is a property but a type was expected 0 Answers
How to fix CS0246 error 1 Answer
How to recreate a puzzle like this. 0 Answers