You are viewing our Forum Archives. To view or take place in current topics click here.
Identifier expected. Please help
Posted:
Identifier expected. Please helpPosted:
Status: Offline
Joined: Dec 30, 201112Year Member
Posts: 566
Reputation Power: 24
This is the script-
using UnityEngine;
using System.Collections;
public class Menu : MonoBehaviour {
private string CurMenu;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
void ToMenu(string menu}{
CurMenu = menu;
{
void OnGUI (){
if(CurMenu == "Main")
Main ();
if(CurMenu == "Host")
Host();
}
private void Main(){
if(GUILayout.Button("Host a match"))
ToMenu("Host");
}
private void Host(){
}
}
#2. Posted:
Status: Offline
Joined: Jan 01, 201113Year Member
Posts: 1,957
Reputation Power: 401
Status: Offline
Joined: Jan 01, 201113Year Member
Posts: 1,957
Reputation Power: 401
after looking through, finally found it
void ToMenu(string menu}{
you have a } instead of a )
void ToMenu(string menu}{
you have a } instead of a )
- 0useful
- 0not useful
#3. Posted:
Status: Offline
Joined: Dec 30, 201112Year Member
Posts: 566
Reputation Power: 24
Oh damm:D Thanks man:)
-Moracity
-Moracity
- 0useful
- 0not useful
You are viewing our Forum Archives. To view or take place in current topics click here.