62GB
|
  |
| Joined: 03 Oct 2011 |
| Total Posts: 4157 |
|
|
| 05 Feb 2016 07:57 PM |
This is in a static thingy that I don't understand. Syntax errors are coming up.
enum NumberSheet{ int n = 4; }
How to put numbers in an enum? |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 05 Feb 2016 08:05 PM |
you don't, that's not the point of enums. You probably want a struct if you want what I think you want. |
|
|
| Report Abuse |
|
|
|
| 05 Feb 2016 08:07 PM |
You don't need to identify numbers in enums. You just need to write:
enum NumberSheet { n = 4; } |
|
|
| Report Abuse |
|
|
DrHaximus
|
  |
| Joined: 22 Nov 2011 |
| Total Posts: 8410 |
|
|
| 05 Feb 2016 08:07 PM |
public enum NumberSheet { A = 0, B = 1 }
c'mon OP, look at google. |
|
|
| Report Abuse |
|
|
|
| 05 Feb 2016 08:09 PM |
| @62 I thought I told you to progress through the vids slowly. |
|
|
| Report Abuse |
|
|
62GB
|
  |
| Joined: 03 Oct 2011 |
| Total Posts: 4157 |
|
|
| 05 Feb 2016 09:24 PM |
| Thanks guys. Threat, talk to me via chat. I watched video by video. I didn't skip anything. |
|
|
| Report Abuse |
|
|
|
| 06 Feb 2016 11:26 AM |
| @62 what vid is that then... talk to me via Google hangouts. |
|
|
| Report Abuse |
|
|
62GB
|
  |
| Joined: 03 Oct 2011 |
| Total Posts: 4157 |
|
|
| 06 Feb 2016 11:28 AM |
I told you I watched Lecture 10. You told me to tell you that in chat. In Lecture 10 he talked about constants.
const int t = 4;
And also enums. Which I needed to clear up on. |
|
|
| Report Abuse |
|
|
|
| 06 Feb 2016 11:32 AM |
| Oh ok I am on iPad so I cannot access Roblox chat some weird glitch but you can talk to me via Google hangouts my use is fun Tertain much easier this way. |
|
|
| Report Abuse |
|
|
62GB
|
  |
| Joined: 03 Oct 2011 |
| Total Posts: 4157 |
|
| |
|
| |
|
62GB
|
  |
| Joined: 03 Oct 2011 |
| Total Posts: 4157 |
|
|
| 06 Feb 2016 01:13 PM |
when i saw that i immediately thought you meant a FR xD
oops |
|
|
| Report Abuse |
|
|
| |
|