Error CS1061
Hey guys im having this error Assets/Scripts/INICIAR SESION/SesionScript.cs(11,33): error CS1061: Type string' does not contain a definition for
text' and no extension method text' of type
string' could be found (are you missing a using directive or an assembly reference?)
and the line is:
if (nombre.text.text.Equals ("") || clave.text.text.Equals ("")) {
Assets/Scripts/INICIAR SESION/SesionScript.cs(14,41): error CS1061: Type string' does not contain a definition for
text' and no extension method text' of type
string' could be found (are you missing a using directive or an assembly reference?)
and the line is:
if (nombre.text.text.Equals (PlayerPrefs.GetString ("Nombre")) && clave.text.text.Equals (PlayerPrefs.GetString ("Clave"))) {
Please if you can help me wich is the error and how to fix it!
thanks!!!
Answer by Oribow · Oct 16, 2015 at 08:36 PM
You have written .text twice. Thats wrong. It should be like this:
if (nombre.text.Equals ("") || clave.text.Equals ("")) {
and
if (nombre.text.Equals (PlayerPrefs.GetString ("Nombre")) && clave.text.Equals (PlayerPrefs.GetString ("Clave"))) {
Your answer
Follow this Question
Related Questions
Cant Complete Rougelike 2D tutorial. 1 Answer
Creator KIT RPG: clouds dont move,Creator Kit RPG : the clouds do not move 0 Answers
Mismatched Serialization Error in Unity 5.2.1f1 0 Answers
ERROR CS 1525 Please help me!! 1 Answer
I am in a bind with these compiler errors. First time user/script 1 Answer